Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusQueued = "queued" StatusInProgress = "in_progress" StatusCompleted = "completed" )
View Source
const ( StateError = "error" StateFailure = "failure" StatePending = "pending" StateSuccess = "success" )
Variables ¶
This section is empty.
Functions ¶
func GetTaskLink ¶
func GetTaskLink(baseURI, productName, pipelineName string, pipelineType config.PipelineType, taskID int64) string
func UIType ¶
func UIType(pipelineType config.PipelineType) string
Types ¶
type Client ¶
func GetGithubAppClientByOwner ¶ added in v1.2.0
func (*Client) CompleteGitCheck ¶ added in v1.2.0
https://developer.github.com/v3/checks/runs/#update-a-check-run
func (*Client) StartGitCheck ¶ added in v1.2.0
https://developer.github.com/v3/checks/runs/#create-a-check-run
func (*Client) UpdateCheckStatus ¶ added in v1.2.0
func (c *Client) UpdateCheckStatus(opt *StatusOptions) error
func (*Client) UpdateGitCheck ¶ added in v1.2.0
https://developer.github.com/v3/checks/runs/#update-a-check-run
type GitCheck ¶
type GitCheck struct { Owner string Repo string Branch string // The name of the branch to perform a check against. (Required.) Ref string // The SHA of the commit. (Required.) IsPr bool AslanURL string PipeName string ProductName string PipeType config.PipelineType TaskID int64 TestReports []*types.TestSuite }
Click to show internal directories.
Click to hide internal directories.