sdk

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: MIT Imports: 4 Imported by: 0

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

func NewActions(cli *githubv3.Client) Actions

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

func NewGraphQL(cli *githubv4.Client) GraphQL

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

func NewIssues

func NewIssues(cli *githubv3.Client) Issues

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

func NewReactions(cli *githubv3.Client) Reactions

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

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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