Documentation
¶
Overview ¶
Package checks provides GitHub check runs operations.
Index ¶
- func AllChecksPassed(checks []*gogithub.CheckRun) bool
- func GetCheckRun(ctx context.Context, client clientv1.Client, owner, repo string, ...) (*gogithub.CheckRun, error)
- func ListCheckRuns(ctx context.Context, client clientv1.Client, owner, repo, ref string) ([]*gogithub.CheckRun, error)
- func ListCheckRunsForPR(ctx context.Context, client clientv1.Client, owner, repo string, prNumber int) ([]*gogithub.CheckRun, error)
- func ListCheckSuites(ctx context.Context, client clientv1.Client, owner, repo, ref string) ([]*gogithub.CheckSuite, error)
- func WaitForChecks(ctx context.Context, client clientv1.Client, owner, repo, ref string, ...) ([]*gogithub.CheckRun, bool, error)
- type ChecksStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllChecksPassed ¶
AllChecksPassed returns true if all check runs completed successfully.
func GetCheckRun ¶
func GetCheckRun(ctx context.Context, client clientv1.Client, owner, repo string, checkRunID int64) (*gogithub.CheckRun, error)
GetCheckRun retrieves a specific check run by ID.
func ListCheckRuns ¶
func ListCheckRuns(ctx context.Context, client clientv1.Client, owner, repo, ref string) ([]*gogithub.CheckRun, error)
ListCheckRuns lists check runs for a commit SHA or branch.
func ListCheckRunsForPR ¶
func ListCheckRunsForPR(ctx context.Context, client clientv1.Client, owner, repo string, prNumber int) ([]*gogithub.CheckRun, error)
ListCheckRunsForPR lists check runs for a pull request.
func ListCheckSuites ¶
func ListCheckSuites(ctx context.Context, client clientv1.Client, owner, repo, ref string) ([]*gogithub.CheckSuite, error)
ListCheckSuites lists check suites for a commit.
Types ¶
type ChecksStatus ¶
type ChecksStatus struct {
Total int
Passed int
Failed int
Pending int
AllPassed bool
AnyFailed bool
AnyPending bool
}
ChecksStatus represents the aggregate status of check runs.
func GetChecksStatus ¶
func GetChecksStatus(checks []*gogithub.CheckRun) *ChecksStatus
GetChecksStatus returns aggregate status of check runs.
Click to show internal directories.
Click to hide internal directories.