github

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRefNotFound added in v1.3.1

func IsRefNotFound(err error) bool

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 App added in v1.3.0

type App = github.App

type CheckRun

type CheckRun = github.CheckRun

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)
}

func NewClient

func NewClient(ctx context.Context, token string) Client

type CombinedStatus

type CombinedStatus = github.CombinedStatus

type ErrorResponse added in v1.3.1

type ErrorResponse = github.ErrorResponse

type Jobs added in v1.2.0

type Jobs = github.Jobs

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 Response

type Response = github.Response

type Timestamp added in v1.3.0

type Timestamp = github.Timestamp

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL