Documentation
¶
Index ¶
- Constants
- type GitHub
- func (g *GitHub) CloneURL() string
- func (g *GitHub) ClosePullRequest(ctx context.Context, pr *releasepr.ReleasePullRequest) error
- func (g *GitHub) CommitsSince(ctx context.Context, tag *git.Tag) ([]git.Commit, error)
- func (g *GitHub) CreatePullRequest(ctx context.Context, pr *releasepr.ReleasePullRequest) error
- func (g *GitHub) CreateRelease(ctx context.Context, commit git.Commit, title, changelog string, ...) error
- func (g *GitHub) EnsureLabelsExist(ctx context.Context, labels []releasepr.Label) error
- func (g *GitHub) GitAuth() transport.AuthMethod
- func (g *GitHub) LatestTags(ctx context.Context) (git.Releases, error)
- func (g *GitHub) PendingReleases(ctx context.Context, pendingLabel releasepr.Label) ([]*releasepr.ReleasePullRequest, error)
- func (g *GitHub) PullRequestForBranch(ctx context.Context, branch string) (*releasepr.ReleasePullRequest, error)
- func (g *GitHub) PullRequestURL(id int) string
- func (g *GitHub) ReleaseURL(version string) string
- func (g *GitHub) RepoURL() string
- func (g *GitHub) SetPullRequestLabels(ctx context.Context, pr *releasepr.ReleasePullRequest, ...) error
- func (g *GitHub) UpdatePullRequest(ctx context.Context, pr *releasepr.ReleasePullRequest) error
- type Options
Constants ¶
View Source
const ( PerPageMax = 100 PRStateOpen = "open" PRStateClosed = "closed" EnvAPIToken = "GITHUB_TOKEN" // nolint:gosec // Not actually a hardcoded credential EnvUsername = "GITHUB_USER" EnvRepository = "GITHUB_REPOSITORY" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHub ¶
type GitHub struct {
// contains filtered or unexported fields
}
func (*GitHub) ClosePullRequest ¶
func (*GitHub) CommitsSince ¶
func (*GitHub) CreatePullRequest ¶
func (*GitHub) CreateRelease ¶
func (*GitHub) EnsureLabelsExist ¶
func (*GitHub) GitAuth ¶
func (g *GitHub) GitAuth() transport.AuthMethod
func (*GitHub) PendingReleases ¶
func (*GitHub) PullRequestForBranch ¶
func (*GitHub) PullRequestURL ¶
func (*GitHub) ReleaseURL ¶
func (*GitHub) SetPullRequestLabels ¶
func (*GitHub) UpdatePullRequest ¶
Click to show internal directories.
Click to hide internal directories.