Documentation ¶
Index ¶
- Constants
- type GitLab
- func (g *GitLab) CloneURL() string
- func (g *GitLab) ClosePullRequest(ctx context.Context, pr *releasepr.ReleasePullRequest) error
- func (g *GitLab) CommitsSince(ctx context.Context, tag *git.Tag) ([]git.Commit, error)
- func (g *GitLab) CreatePullRequest(ctx context.Context, pr *releasepr.ReleasePullRequest) error
- func (g *GitLab) CreateRelease(ctx context.Context, commit git.Commit, title, changelog string, _, _ bool) error
- func (g *GitLab) EnsureLabelsExist(ctx context.Context, labels []releasepr.Label) error
- func (g *GitLab) GitAuth() transport.AuthMethod
- func (g *GitLab) LatestTags(ctx context.Context) (git.Releases, error)
- func (g *GitLab) PendingReleases(ctx context.Context, pendingLabel releasepr.Label) ([]*releasepr.ReleasePullRequest, error)
- func (g *GitLab) PullRequestForBranch(ctx context.Context, branch string) (*releasepr.ReleasePullRequest, error)
- func (g *GitLab) PullRequestURL(id int) string
- func (g *GitLab) ReleaseURL(version string) string
- func (g *GitLab) RepoURL() string
- func (g *GitLab) SetPullRequestLabels(ctx context.Context, pr *releasepr.ReleasePullRequest, ...) error
- func (g *GitLab) UpdatePullRequest(ctx context.Context, pr *releasepr.ReleasePullRequest) error
- type Options
Constants ¶
View Source
const ( PerPageMax = 100 PRStateOpen = "opened" PRStateMerged = "merged" PRStateEventClose = "close" EnvAPIToken = "GITLAB_TOKEN" // nolint:gosec // Not actually a hardcoded credential EnvAPIURL = "CI_API_V4_URL" EnvProjectURL = "CI_PROJECT_URL" EnvProjectPath = "CI_PROJECT_PATH" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitLab ¶
type GitLab struct {
// contains filtered or unexported fields
}
func (*GitLab) ClosePullRequest ¶ added in v0.4.0
func (*GitLab) CommitsSince ¶ added in v0.4.0
func (*GitLab) CreatePullRequest ¶ added in v0.4.0
func (*GitLab) CreateRelease ¶ added in v0.4.0
func (*GitLab) EnsureLabelsExist ¶ added in v0.4.0
func (*GitLab) GitAuth ¶ added in v0.4.0
func (g *GitLab) GitAuth() transport.AuthMethod
func (*GitLab) LatestTags ¶ added in v0.4.0
func (*GitLab) PendingReleases ¶ added in v0.4.0
func (*GitLab) PullRequestForBranch ¶ added in v0.4.0
func (*GitLab) PullRequestURL ¶ added in v0.4.0
func (*GitLab) ReleaseURL ¶ added in v0.4.0
func (*GitLab) SetPullRequestLabels ¶ added in v0.4.0
func (*GitLab) UpdatePullRequest ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.