Documentation ¶
Index ¶
- type AuthInfo
- type CIStatus
- type CheckCIStatus
- type CheckCIStatusForChecks
- type CheckOverallCIStatus
- type CheckPRMerged
- type GHClient
- func (c GHClient) GetCIStatus(ctx context.Context, owner, repoName string, ref string) (CIStatus, error)
- func (c GHClient) GetCIStatusForChecks(ctx context.Context, owner, repoName string, ref string, checkNames []string) (CIStatus, []string, error)
- func (c GHClient) GetPRHeadSHA(ctx context.Context, owner, repo string, prNumber int) (string, error)
- func (c GHClient) IsPRMergedOrClosed(ctx context.Context, owner, repo string, prNumber int) (string, bool, int64, error)
- type GetPRHeadSHA
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckCIStatus ¶
type CheckCIStatus interface { CheckOverallCIStatus CheckCIStatusForChecks }
type CheckCIStatusForChecks ¶
type CheckOverallCIStatus ¶
type CheckPRMerged ¶
type GHClient ¶
type GHClient struct {
// contains filtered or unexported fields
}
func AuthenticateWithApp ¶
func AuthenticateWithApp(ctx context.Context, privateKey []byte, appID, installationID int64) (GHClient, error)
AuthenticateWithApp authenticates with a GitHub App
func AuthenticateWithToken ¶
AuthenticateWithToken authenticates with a GitHub token
func NewGithubClient ¶
func (GHClient) GetCIStatus ¶
func (GHClient) GetCIStatusForChecks ¶
func (c GHClient) GetCIStatusForChecks(ctx context.Context, owner, repoName string, ref string, checkNames []string) (CIStatus, []string, error)
GetCIStatusForCheck returns the CI status for a specific commit. It looks at both 'checks' and 'statuses'.
func (GHClient) GetPRHeadSHA ¶
Click to show internal directories.
Click to hide internal directories.