gitlab

package
v0.0.0-...-38d5e0a Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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
}

Client implements the GitClient interface for GitLab

func (*Client) AddLabels

func (c *Client) AddLabels(labels []string) error

func (*Client) ApprovePR

func (c *Client) ApprovePR(message string) error

func (*Client) AssignReviewers

func (c *Client) AssignReviewers(reviewers []string) error

func (*Client) BranchExists

func (c *Client) BranchExists(branchName string) (bool, error)

func (*Client) CheckPRStatus

func (c *Client) CheckPRStatus(expectedState string) error

func (*Client) CheckRunsStatus

func (c *Client) CheckRunsStatus() (bool, []git.CheckRun, error)

func (*Client) CheckUserPermissions

func (c *Client) CheckUserPermissions(username string, requiredPerms []string) (bool, string, error)

func (*Client) CherryPickCommit

func (c *Client) CherryPickCommit(commitSHA, targetBranch string) error

func (*Client) ClosePR

func (c *Client) ClosePR() error

func (*Client) CreateBranch

func (c *Client) CreateBranch(branchName, baseBranch string) error

func (*Client) CreatePR

func (c *Client) CreatePR(title, body, head, base string) (*git.PullRequest, error)

func (*Client) DismissApprove

func (c *Client) DismissApprove(message string) error

func (*Client) FindIssue

func (c *Client) FindIssue(opts git.IssueSearchOptions) (*git.Issue, error)

func (*Client) GetAvailableMergeMethods

func (c *Client) GetAvailableMergeMethods() ([]string, error)

func (*Client) GetComments

func (c *Client) GetComments() ([]git.Comment, error)

func (*Client) GetCommits

func (c *Client) GetCommits() ([]git.Commit, error)

func (*Client) GetIssue

func (c *Client) GetIssue(issueNumber int) (*git.Issue, error)

func (*Client) GetLGTMVotes

func (c *Client) GetLGTMVotes(comments []git.Comment, requiredPerms []string, debugMode bool, ignoreUserRemove ...string) (int, map[string]string, error)

func (*Client) GetLabels

func (c *Client) GetLabels() ([]string, error)

func (*Client) GetPR

func (c *Client) GetPR() (*git.PullRequest, error)

func (*Client) GetRequestedReviewers

func (c *Client) GetRequestedReviewers() ([]string, error)

func (*Client) GetReviews

func (c *Client) GetReviews() ([]git.Review, error)

func (*Client) GetUserPermission

func (c *Client) GetUserPermission(username string) (string, error)

func (*Client) MergePR

func (c *Client) MergePR(method string) error

func (*Client) PostComment

func (c *Client) PostComment(message string) error

func (*Client) RebasePR

func (c *Client) RebasePR() error

func (*Client) RemoveLabels

func (c *Client) RemoveLabels(labels []string) error

func (*Client) RemoveReviewers

func (c *Client) RemoveReviewers(reviewers []string) error

func (*Client) UpdateIssueBody

func (c *Client) UpdateIssueBody(issueNumber int, body string) error

func (*Client) UpdatePRBody

func (c *Client) UpdatePRBody(body string) error

type Factory

type Factory struct{}

Factory implements ClientFactory for GitLab

func (*Factory) CreateClient

func (f *Factory) CreateClient(logger *logrus.Logger, config *git.Config) (git.GitClient, error)

CreateClient creates a new GitLab client

Jump to

Keyboard shortcuts

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