Documentation ¶
Index ¶
Constants ¶
View Source
const PipelinesAppID = int64(9426)
PipelinesAppID is the ID of the Azure Pipelines GitHub app.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API interface { GetBuildURL(owner, repo string, buildID int64) string GetAzureArtifactsURL(owner, repo string, buildID int64) string GetBuild(owner, repo string, buildID int64) (*Build, error) }
API is for Azure Pipelines related requests.
type ArtifactResource ¶
type ArtifactResource struct { Data string `json:"data"` DownloadURL string `json:"downloadUrl"` Type string `json:"type"` URL string `json:"url"` }
ArtifactResource is a resource for an artifact.
type Build ¶
type Build struct { SourceBranch string `json:"sourceBranch"` TriggerInfo BuildTriggerInfo `json:"triggerInfo"` }
Build is an Azure Pipelines build object.
func (*Build) IsMasterBranch ¶
IsMasterBranch returns whether the source branch for the build is the master branch.
type BuildArtifact ¶
type BuildArtifact struct { ID int64 `json:"id"` Name string `json:"name"` Resource ArtifactResource `json:"resource"` }
BuildArtifact is an artifact published by a build.
type BuildArtifacts ¶
type BuildArtifacts struct { Count int64 `json:"count"` Value []BuildArtifact `json:"value"` }
BuildArtifacts is a wrapper for multiple BuildArtifact results.
type BuildTriggerInfo ¶
type BuildTriggerInfo struct { SourceBranch string `json:"pr.sourceBranch"` SourceSHA string `json:"pr.sourceSha"` }
BuildTriggerInfo is information about what triggered the build.
Directories ¶
Path | Synopsis |
---|---|
Package mock_azure is a generated GoMock package.
|
Package mock_azure is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.