gitlab

package
v0.0.0-...-c09d977 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 8 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
}

func New

func New(rootCtx context.Context, serverUrl string, token string) (*Client, error)

func (*Client) AddCommentToCommit

func (c *Client) AddCommentToCommit(projectID int, commitID string, comment string) error

func (*Client) AddCommentToMergeRequests

func (c *Client) AddCommentToMergeRequests(projectID int, mrID int, comment string) error

func (*Client) CommitsByProject

func (c *Client) CommitsByProject(projectID int, createdAfter time.Time) ([]*ds.Commit, error)

func (*Client) GetCommitDiff

func (c *Client) GetCommitDiff(projectID int, commitID string) (result []*service.Diff, err error)

func (*Client) GetMergeRequestDiff

func (c *Client) GetMergeRequestDiff(projectID int, mrID int) (result []*service.Diff, err error)

func (*Client) MergeRequestApproves

func (c *Client) MergeRequestApproves(projectID int, iid int) ([]*ds.BasicUser, error)

func (*Client) MergeRequestsByProject

func (c *Client) MergeRequestsByProject(projectID int, createdAfter time.Time) ([]*ds.MergeRequest, error)

MergeRequestsByProject only last 1000 merge requests are processed

func (*Client) SetReviewers

func (c *Client) SetReviewers(mr *ds.MergeRequest, reviewers []int) error

Jump to

Keyboard shortcuts

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