Documentation
¶
Index ¶
- type BasePull
- type Client
- func (g *Client) CompareCommits(ctx context.Context, owner, repo, base, head string, count int) (*CommitComparison, error)
- func (g *Client) CreateRelease(ctx context.Context, owner, repo, tag, body string, prerelease bool) (*RepoRelease, error)
- func (g *Client) DeleteRelease(ctx context.Context, owner, repo string, id int64) error
- func (g *Client) GenerateReleaseNotes(ctx context.Context, owner, repo, tag, prevTag string) (string, error)
- func (g *Client) GetPullRequest(ctx context.Context, owner, repo string, number int) (*BasePull, error)
- func (g *Client) GetPullRequestCommits(ctx context.Context, owner, repo string, number int) ([]string, error)
- func (g *Client) ListMergedPullsForCommit(ctx context.Context, owner, repo, sha string) ([]BasePull, error)
- func (g *Client) PublishRelease(ctx context.Context, owner, repo, makeLatest string, id int64) error
- func (g *Client) UploadAsset(ctx context.Context, uploadURL, filename string) error
- type CommitComparison
- type RepoRelease
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CompareCommits ¶
func (g *Client) CompareCommits( ctx context.Context, owner, repo, base, head string, count int, ) (*CommitComparison, error)
CompareCommits returns a commit comparison that includes up to count commits. If count is -1, all commits are included. If count is 0, no commits are included.
func (*Client) CreateRelease ¶
func (*Client) DeleteRelease ¶
func (*Client) GenerateReleaseNotes ¶
func (*Client) GetPullRequest ¶
func (*Client) GetPullRequestCommits ¶
func (*Client) ListMergedPullsForCommit ¶
func (*Client) PublishRelease ¶
func (*Client) UploadAsset ¶
UploadAsset is largely copied from github.Client.UploadReleaseAsset. It is modified to use uploadURL instead of building it from releaseID so that we don't need to set upload url. It also accepts a filename instead of an *os.File.
type CommitComparison ¶
type RepoRelease ¶
Click to show internal directories.
Click to hide internal directories.