Documentation
¶
Index ¶
- func IsRefNotFound(err error) bool
- type App
- type CheckRun
- type CheckSuite
- type Client
- type CombinedStatus
- type ErrorResponse
- type Jobs
- type ListCheckRunsOptions
- type ListCheckRunsResults
- type ListOptions
- type ListWorkflowJobsOptions
- type ListWorkflowRunsOptions
- type RepoStatus
- type Response
- type Timestamp
- type WorkflowJob
- type WorkflowRun
- type WorkflowRuns
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRefNotFound ¶ added in v1.3.1
IsRefNotFound reports whether err is (or wraps) GitHub's 404 for a ref that does not exist — the per-ref endpoints' response after a branch or tag is deleted. Deliberately narrower than any 404: a plain "Not Found" (repository gone, token lost access) stays unclassified so callers keep treating it as an ordinary transient failure.
Types ¶
type CheckSuite ¶ added in v1.1.0
type CheckSuite = github.CheckSuite
type Client ¶
type Client interface {
GetCombinedStatus(ctx context.Context, owner, repo, ref string, opts *ListOptions) (*CombinedStatus, *Response, error)
ListCheckRunsForRef(ctx context.Context, owner, repo, ref string, opts *ListCheckRunsOptions) (*ListCheckRunsResults, *Response, error)
ListRepositoryWorkflowRuns(ctx context.Context, owner, repo string, opts *ListWorkflowRunsOptions) (*WorkflowRuns, *Response, error)
ListWorkflowJobs(ctx context.Context, owner, repo string, runID int64, opts *ListWorkflowJobsOptions) (*Jobs, *Response, error)
// GetCommitSHA1 resolves any ref (branch, tag, short SHA) to a full commit SHA.
GetCommitSHA1(ctx context.Context, owner, repo, ref string) (string, *Response, error)
}
type CombinedStatus ¶
type CombinedStatus = github.CombinedStatus
type ErrorResponse ¶ added in v1.3.1
type ErrorResponse = github.ErrorResponse
type ListCheckRunsOptions ¶
type ListCheckRunsOptions = github.ListCheckRunsOptions
type ListCheckRunsResults ¶
type ListCheckRunsResults = github.ListCheckRunsResults
type ListOptions ¶
type ListOptions = github.ListOptions
type ListWorkflowJobsOptions ¶ added in v1.2.0
type ListWorkflowJobsOptions = github.ListWorkflowJobsOptions
type ListWorkflowRunsOptions ¶ added in v1.1.0
type ListWorkflowRunsOptions = github.ListWorkflowRunsOptions
type RepoStatus ¶
type RepoStatus = github.RepoStatus
type WorkflowJob ¶ added in v1.2.0
type WorkflowJob = github.WorkflowJob
type WorkflowRun ¶ added in v1.1.0
type WorkflowRun = github.WorkflowRun
type WorkflowRuns ¶ added in v1.1.0
type WorkflowRuns = github.WorkflowRuns
Click to show internal directories.
Click to hide internal directories.