Documentation
¶
Overview ¶
Package gitlab is GitLab as scm/1 and tracker/1: merge requests, pipelines, job logs, releases and issues of the project the origin remote (or plugins.gitlab.project) names, over the REST API v4.
Index ¶
- func Open(c *sdk.Ctx) (forge.SCM, error)
- type GitLab
- func (g GitLab) Approve(ctx context.Context, mr string) error
- func (g GitLab) Comment(ctx context.Context, mr, body string) error
- func (g GitLab) Files(ctx context.Context, mr string) ([]forge.File, error)
- func (g GitLab) Issue(ctx context.Context, key string) (*forge.IssueDetail, error)
- func (g GitLab) IssueComment(ctx context.Context, key, body string) error
- func (g GitLab) Issues(ctx context.Context, query, assignee string) ([]forge.Issue, error)
- func (g GitLab) Jobs(ctx context.Context, pipeline string) ([]forge.Job, error)
- func (g GitLab) Log(ctx context.Context, job string) ([]string, bool, error)
- func (g GitLab) MR(ctx context.Context, mr string) (string, error)
- func (g GitLab) MRs(ctx context.Context, state, author, query string) ([]forge.MR, error)
- func (g GitLab) Merge(ctx context.Context, mr string) error
- func (g GitLab) Open(ctx context.Context, source, target, title, body string) (*forge.MR, error)
- func (g GitLab) Pipelines(ctx context.Context, ref string, limit int) ([]forge.Pipeline, error)
- func (g GitLab) Rebase(ctx context.Context, mr string) error
- func (g GitLab) Releases(ctx context.Context, query string) ([]forge.Release, error)
- func (g GitLab) Retry(ctx context.Context, job string) error
- func (g GitLab) Transition(ctx context.Context, key, status string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.