Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actions ¶
type Actions interface {
ListArtifacts(ctx context.Context, owner, repo string, opts *githubv3.ListArtifactsOptions) (*githubv3.ArtifactList, *githubv3.Response, error)
DownloadArtifact(ctx context.Context, owner, repo string, artifactID int64, maxRedirects int) (*url.URL, *githubv3.Response, error)
DeleteArtifact(ctx context.Context, owner, repo string, artifactID int64) (*githubv3.Response, error)
}
func NewActions ¶
type GraphQL ¶
type GraphQL interface {
Query(ctx context.Context, query any, variables map[string]any) error
Mutate(ctx context.Context, mutate any, input githubv4.Input, variables map[string]any) error
}
func NewGraphQL ¶
type Issues ¶
type Issues interface {
CreateComment(ctx context.Context, owner, repo string, number int, comment *githubv3.IssueComment) (*githubv3.IssueComment, *githubv3.Response, error)
CreateLabel(ctx context.Context, owner, resp string, label *githubv3.Label) (*githubv3.Label, *githubv3.Response, error)
DeleteLabel(ctx context.Context, owner, repo, name string) (*githubv3.Response, error)
GetLabel(ctx context.Context, owner, repo, name string) (*githubv3.Label, *githubv3.Response, error)
AddLabelsToIssue(ctx context.Context, owner, repo string, number int, labels []string) ([]*githubv3.Label, *githubv3.Response, error)
}
type PullRequests ¶
type PullRequests interface {
ListReviews(ctx context.Context, owner, repo string, number int, opts *githubv3.ListOptions) ([]*githubv3.PullRequestReview, *githubv3.Response, error)
List(ctx context.Context, owner, repo string, opts *githubv3.PullRequestListOptions) ([]*githubv3.PullRequest, *githubv3.Response, error)
ListFiles(ctx context.Context, owner, repo string, number int, opts *githubv3.ListOptions) ([]*githubv3.CommitFile, *githubv3.Response, error)
Get(ctx context.Context, owner, repo string, number int) (*githubv3.PullRequest, *githubv3.Response, error)
}
func NewPullRequests ¶
func NewPullRequests(cli *githubv3.Client) PullRequests
type Reactions ¶
type Reactions interface {
CreateIssueCommentReaction(ctx context.Context, owner, repo string, commentID int64, content string) (*githubv3.Reaction, *githubv3.Response, error)
}
func NewReactions ¶
type Repositories ¶
type Repositories interface {
CreateStatus(ctx context.Context, owner, repo, ref string, status *githubv3.RepoStatus) (*githubv3.RepoStatus, *githubv3.Response, error)
}
func NewRepositories ¶
func NewRepositories(cli *githubv3.Client) Repositories
Click to show internal directories.
Click to hide internal directories.