gitlab

package
v0.48.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client forge.Client) scm.Driver

func ParseRepo

func ParseRepo(fullName string) (owner, repo string, err error)

ParseRepo splits "owner/repo" into owner and repo name.

Types

type Driver

type Driver struct {
	Client forge.Client
}

Driver implements scm.Driver using forge.Client.

func (*Driver) AddComment

func (d *Driver) AddComment(ctx context.Context, owner, repo string, number int, body string) (*forge.IssueComment, error)

func (*Driver) AddIssueLabels

func (d *Driver) AddIssueLabels(ctx context.Context, owner, repo string, number int, labels ...string) error

func (*Driver) CloseIssue

func (d *Driver) CloseIssue(ctx context.Context, owner, repo string, number int) error

func (*Driver) CommitFile

func (d *Driver) CommitFile(ctx context.Context, owner, repo, path, message string, content []byte) error

func (*Driver) CommitFileToBranch

func (d *Driver) CommitFileToBranch(ctx context.Context, owner, repo, branch, path, message string, content []byte) error

func (*Driver) CommitFileToFork

func (d *Driver) CommitFileToFork(ctx context.Context, forkOwner, forkRepo, branch, path, message string, content []byte) error

func (*Driver) CreateBranch

func (d *Driver) CreateBranch(ctx context.Context, owner, repo, branch string) error

func (*Driver) CreateChangeProposal

func (d *Driver) CreateChangeProposal(ctx context.Context, owner, repo, title, body, head, base string) (*forge.ChangeProposal, error)

func (*Driver) CreateFork

func (d *Driver) CreateFork(ctx context.Context, owner, repo, forkName string) (string, error)

func (*Driver) CreateForkChangeProposal

func (d *Driver) CreateForkChangeProposal(ctx context.Context, _, _, title, body, forkOwner, forkRepo, head, base string) (*forge.ChangeProposal, error)

func (*Driver) CreateIssue

func (d *Driver) CreateIssue(ctx context.Context, owner, repo, title, body string, labels ...string) (*forge.Issue, error)

func (*Driver) CreateRepo

func (d *Driver) CreateRepo(ctx context.Context, org, name, description string) error

func (*Driver) CreateUserFork added in v0.48.0

func (d *Driver) CreateUserFork(ctx context.Context, owner, repo string) (string, string, error)

func (*Driver) DeleteBranch

func (d *Driver) DeleteBranch(ctx context.Context, owner, repo, branch string) error

func (*Driver) DeleteRepo

func (d *Driver) DeleteRepo(ctx context.Context, owner, repo string) error

func (*Driver) EnsureRepoPublic

func (d *Driver) EnsureRepoPublic(ctx context.Context, owner, repo string) error

func (*Driver) GetBranchRef

func (d *Driver) GetBranchRef(ctx context.Context, owner, repo, branch string) (string, error)

func (*Driver) GetDefaultBranch

func (d *Driver) GetDefaultBranch(ctx context.Context, owner, repo string) (string, error)

func (*Driver) GetFileContent

func (d *Driver) GetFileContent(ctx context.Context, owner, repo, path string) ([]byte, error)

func (*Driver) GetFileContentAtRef added in v0.45.0

func (d *Driver) GetFileContentAtRef(ctx context.Context, owner, repo, path, ref string) ([]byte, error)

func (*Driver) GetIssue

func (d *Driver) GetIssue(ctx context.Context, owner, repo string, number int) (*forge.Issue, error)

func (*Driver) ListComments

func (d *Driver) ListComments(ctx context.Context, owner, repo string, number int) ([]forge.IssueComment, error)

func (*Driver) ListIssueReactions

func (d *Driver) ListIssueReactions(ctx context.Context, owner, repo string, number int) ([]forge.Reaction, error)

func (*Driver) ListOpenChangeProposals

func (d *Driver) ListOpenChangeProposals(ctx context.Context, owner, repo string) ([]forge.ChangeProposal, error)

func (*Driver) ListPullRequestCommits added in v0.46.0

func (d *Driver) ListPullRequestCommits(ctx context.Context, owner, repo string, number int) ([]string, error)

func (*Driver) ListPullRequestReviews added in v0.45.0

func (d *Driver) ListPullRequestReviews(ctx context.Context, owner, repo string, number int) ([]forge.PullRequestReview, error)

func (*Driver) SubmitPullRequestReview

func (d *Driver) SubmitPullRequestReview(ctx context.Context, owner, repo string, number int, event string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL