gitlab

package
v0.0.0-...-b41f85f Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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