Documentation ¶
Index ¶
Constants ¶
View Source
const ( CSConclusionActionReq = "ACTION_REQUIRED" CSConclusionCancelled = "CANCELLED" CSConclusionFailure = "FAILURE" CSConclusionNeutral = "NEUTRAL" CSConclusionSkipped = "SKIPPED" CSConclusionStartupFailure = "STARTUP_FAILURE" CSConclusionSuccess = "SUCCESS" CSConclusionTimedOut = "TIMED_OUT" CSStateRequested = "REQUESTED" CSStateQueued = "QUEUED" CSStateInProgress = "IN_PROGRESS" CSStateCompleted = "COMPLETED" CSStateWaiting = "WAITING" CSStatePending = "PENDING" )
cs = check suite https://docs.github.com/en/graphql/reference/enums#checkconclusionstate
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckSuite ¶
func (CheckSuite) ConclusionOrState ¶ added in v1.1.0
func (cs CheckSuite) ConclusionOrState() string
func (CheckSuite) FinishedSuccessfully ¶ added in v1.1.0
func (cs CheckSuite) FinishedSuccessfully() bool
func (CheckSuite) IsAFailure ¶
func (cs CheckSuite) IsAFailure() bool
type NodeResult ¶
type NodeResult struct { ID string Workflow WorkflowResult `graphql:"... on Workflow"` }
type QueryResult ¶
type QueryResult struct {
NodeResult `graphql:"node(id: $workflowId)"`
}
type ResultData ¶ added in v1.1.0
type ResultData struct { Workflow types.Workflow Result QueryResult Err error }
func GetWorkflowRuns ¶ added in v1.1.0
func GetWorkflowRuns(ghClient *ghapi.GraphQLClient, workflow types.Workflow) ResultData
type WorkflowDetails ¶
type WorkflowDetails struct { TotalCount int Workflows []WorkflowDetailsResult }
func GetWorkflowDetails ¶
func GetWorkflowDetails(ghClient *ghapi.RESTClient, repo string) (WorkflowDetails, error)
type WorkflowDetailsResult ¶
type WorkflowResult ¶
type WorkflowResult struct { Name string ID string Runs struct { Nodes []WorkflowRunNodesResult } `graphql:"runs(first: $numWorkflowRuns)"` }
type WorkflowRunNodesResult ¶
Click to show internal directories.
Click to hide internal directories.