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" )
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 ¶
type CheckSuite struct {
Conclusion string
}
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 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.