{"modulePath":"github.com/kosli-dev/cli","version":"v0.1.41","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package gitlab\n\n## Types\n\n```go\ntype GitlabConfig struct {\n\tToken      string\n\tBaseURL    string\n\tOrg        string\n\tRepository string\n}\n```\n\n```go\nfunc (c *GitlabConfig) GetClientOptFns() []gitlab.ClientOptionFunc\n```\nGetClientOptFns creates a list of ClientOptionFunc\n\n```go\nfunc (c *GitlabConfig) GetMergeRequestApprovers(mrIID int) ([]string, error)\n```\nGetMergeRequestApprovers returns a list of users (name and username) who approved an MR\n\n```go\nfunc (c *GitlabConfig) MergeRequestsForCommit(commit string) ([]*gitlab.MergeRequest, error)\n```\nMergeRequestsForCommit returns a list of MRs for a given commit\n\n```go\nfunc (c *GitlabConfig) NewGitlabClientFromToken() (*gitlab.Client, error)\n```\nNewGitlabClientFromToken returns an API client from GitlabConfig\n\n```go\nfunc (c *GitlabConfig) PREvidenceForCommit(commit string) ([]*types.PREvidence, error)\n```\n\n```go\nfunc (c *GitlabConfig) ProjectID() string\n```\nprojectID returns a project ID that can be used when making calls to Gitlab API\n\n","path":"github.com/kosli-dev/cli/internal/gitlab","name":"gitlab","synopsis":"","isRedistributable":true}
