Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateCheckRun(ctx context.Context, owner, repo string, opts github.CreateCheckRunOptions) (*github.CheckRun, error)
- func (c *Client) CreateHook(ctx context.Context, owner, repo string, hook *git.Hook) (*github.Hook, error)
- func (c *Client) CreateStatus(ctx context.Context, owner, repo, ref string, status *github.RepoStatus) (*github.RepoStatus, error)
- func (c *Client) DeleteHook(ctx context.Context, owner, repo string, id int64) error
- func (c *Client) GetAuthenticatedUser(ctx context.Context) (*github.User, error)
- func (c *Client) GetContents(ctx context.Context, owner, repo, path string, ...) (*github.RepositoryContent, []*github.RepositoryContent, error)
- func (c *Client) GetLatestRepositoryCommit(ctx context.Context, owner, repo, path, branch string) (*github.RepositoryCommit, error)
- func (c *Client) GetPullRequest(ctx context.Context, owner string, repo string, number int) (*github.PullRequest, error)
- func (c *Client) GetTree(ctx context.Context, owner string, repo string, sha string, recursive bool) (*github.Tree, error)
- func (c *Client) GetTreeContents(ctx context.Context, owner, repo, path, branch string) (afero.Fs, error)
- func (c *Client) GetYAMLContents(ctx context.Context, owner, repo, path, branch string, split bool) ([]string, error)
- func (c *Client) ListBranches(ctx context.Context, owner, repo string, opts *ListOptions) ([]*github.Branch, error)
- func (c *Client) ListCommitsForBranch(ctx context.Context, owner, repo, branch string, opts *ListOptions) ([]*github.RepositoryCommit, error)
- func (c *Client) ListCommitsForPR(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*github.RepositoryCommit, error)
- func (c *Client) ListFiles(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*github.CommitFile, error)
- func (c *Client) ListHooks(ctx context.Context, owner, repo string, opts *ListOptions) ([]*github.Hook, error)
- func (c *Client) ListInstallations(ctx context.Context, opts *ListOptions) ([]*github.Installation, error)
- func (c *Client) ListOrganizationsForAuthenticatedUser(ctx context.Context, opts *ListOptions) ([]*github.Organization, error)
- func (c *Client) ListPullRequests(ctx context.Context, owner string, repo string, ...) ([]*github.PullRequest, error)
- func (c *Client) ListReleases(ctx context.Context, owner, repo string, opts *ListOptions) ([]*github.RepositoryRelease, error)
- func (c *Client) ListRepositoriesForAuthenticatedUser(ctx context.Context, user string, opts *ListOptions) ([]*github.Repository, error)
- func (c *Client) ListRepositoryCommits(ctx context.Context, owner, repo, path, branch string, opts *ListOptions) ([]*github.RepositoryCommit, error)
- func (c *Client) ListTags(ctx context.Context, owner, repo string, opts *ListOptions) ([]*github.RepositoryTag, error)
- func (c *Client) UpdateCheckRun(ctx context.Context, owner, repo string, checkRunID int64, ...) (*github.CheckRun, error)
- func (c *Client) UpdateHook(ctx context.Context, owner, repo string, id int64, hook *git.Hook) (*github.Hook, error)
- type Config
- type ListOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewAppClient ¶
NewAppClient inits GitHub app client according to user's installation ID
func (*Client) CreateCheckRun ¶
func (*Client) CreateHook ¶
func (*Client) CreateStatus ¶
func (c *Client) CreateStatus(ctx context.Context, owner, repo, ref string, status *github.RepoStatus) (*github.RepoStatus, error)
func (*Client) DeleteHook ¶
func (*Client) GetAuthenticatedUser ¶
func (*Client) GetContents ¶
func (c *Client) GetContents(ctx context.Context, owner, repo, path string, opts *github.RepositoryContentGetOptions) (*github.RepositoryContent, []*github.RepositoryContent, error)
func (*Client) GetLatestRepositoryCommit ¶ added in v1.4.0
func (*Client) GetPullRequest ¶
func (*Client) GetTreeContents ¶ added in v1.4.0
func (c *Client) GetTreeContents(ctx context.Context, owner, repo, path, branch string) (afero.Fs, error)
GetTreeContents recursively gets all file contents under the given path, and writes to an in-memory file system.
func (*Client) GetYAMLContents ¶ added in v1.4.0
func (c *Client) GetYAMLContents(ctx context.Context, owner, repo, path, branch string, split bool) ([]string, error)
GetYAMLContents recursively gets all yaml contents under the given path. if split is true, manifests in the same file will be split to separated ones.
func (*Client) ListBranches ¶
func (*Client) ListCommitsForBranch ¶ added in v1.9.9
func (c *Client) ListCommitsForBranch(ctx context.Context, owner, repo, branch string, opts *ListOptions) ([]*github.RepositoryCommit, error)
func (*Client) ListCommitsForPR ¶ added in v1.9.9
func (c *Client) ListCommitsForPR(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*github.RepositoryCommit, error)
func (*Client) ListFiles ¶
func (c *Client) ListFiles(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*github.CommitFile, error)
func (*Client) ListInstallations ¶
func (c *Client) ListInstallations(ctx context.Context, opts *ListOptions) ([]*github.Installation, error)
func (*Client) ListOrganizationsForAuthenticatedUser ¶
func (c *Client) ListOrganizationsForAuthenticatedUser(ctx context.Context, opts *ListOptions) ([]*github.Organization, error)
func (*Client) ListPullRequests ¶
func (c *Client) ListPullRequests(ctx context.Context, owner string, repo string, opts *github.PullRequestListOptions) ([]*github.PullRequest, error)
func (*Client) ListReleases ¶
func (c *Client) ListReleases(ctx context.Context, owner, repo string, opts *ListOptions) ([]*github.RepositoryRelease, error)
func (*Client) ListRepositoriesForAuthenticatedUser ¶
func (c *Client) ListRepositoriesForAuthenticatedUser(ctx context.Context, user string, opts *ListOptions) ([]*github.Repository, error)
func (*Client) ListRepositoryCommits ¶ added in v1.4.0
func (c *Client) ListRepositoryCommits(ctx context.Context, owner, repo, path, branch string, opts *ListOptions) ([]*github.RepositoryCommit, error)
func (*Client) ListTags ¶
func (c *Client) ListTags(ctx context.Context, owner, repo string, opts *ListOptions) ([]*github.RepositoryTag, error)
func (*Client) UpdateCheckRun ¶
type ListOptions ¶
Click to show internal directories.
Click to hide internal directories.