Versions in this module Expand all Collapse all v1 v1.1.0 Jun 18, 2021 Changes in this version + const DefaultOrgID + type Branch struct + Merged bool + Name string + Protected bool + type Client struct + func NewGitlabClient(address, accessToken string) (*Client, error) + func (c *Client) Compare(projectID int, from, to string) ([]*gitlab.Diff, error) + func (c *Client) CreateCommitDiscussion(projectPath, commitHash, comment string) error + func (c *Client) GetFileContent(projectID int, ref, path string) ([]byte, error) + func (c *Client) GetLatestCommit(projectID int, branch, path string) (*RepoCommit, error) + func (c *Client) GetLatestCommitByProName(projectID, branch, path string) (*RepoCommit, error) + func (c *Client) GetProject(owner, repo string) (*Project, error) + func (c *Client) GetRawFile(projectID int, sha string, fileName string) (content []byte, err error) + func (c *Client) GetSingleCommitOfProject(address, token, projectPath, commitSha string) (*gitlab.Commit, error) + func (c *Client) ListBranches(projectID string) ([]*Branch, error) + func (c *Client) ListChangedFiles(address, token string, event *gitlab.MergeEvent) ([]string, error) + func (c *Client) ListGroupProjects(namespace, keyword string) ([]*Project, error) + func (c *Client) ListNamespaces(keyword string) ([]*Namespace, error) + func (c *Client) ListOpened(projectID, targetBranch string) ([]*MergeRequest, error) + func (c *Client) ListTags(projectID string) ([]*Tag, error) + func (c *Client) ListTree(projectID int, ref string, path string) ([]*gitlab.TreeNode, error) + func (c *Client) ListUserProjects(owner, keyword string) ([]*Project, error) + type MergeRequest struct + AuthorUsername string + Base string + CreatedAt int64 + MRID int + Number int + ProjectID int + SourceBranch string + State string + TargetBranch string + Title string + UpdatedAt int64 + User string + type Namespace struct + Kind string + Name string + Path string + type Project struct + DefaultBranch string + Description string + ID int + Name string + Namespace string + type RepoCommit struct + AuthorName string + CreatedAt *time.Time + ID string + Message string + Title string + type Tag struct + Message string + Name string + TarballURL string + ZipballURL string