Documentation
¶
Index ¶
- func GetCurrentBranch() (string, error)
- func GetDevelopmentBranch() (string, error)
- func GetGitLabProjectNamespace() (string, error)
- func GetLocalBranches() ([]string, error)
- func GetRemoteBranches() ([]string, error)
- func GetRemoteURL() (string, error)
- func ParseIssueKey(param string) (string, error)
- type Gist
- type GistFile
- type GitClient
- type GitLabClient
- func (c *GitLabClient) CacheProjectID(namespace string, id int) error
- func (c *GitLabClient) CreateMergeRequest(namespace string, payload map[string]interface{}) (*MergeRequest, error)
- func (c *GitLabClient) GetCachedProjectID(namespace string) (int, error)
- func (c *GitLabClient) GetMergeRequests(namespace, sourceBranch string) ([]MergeRequest, error)
- func (c *GitLabClient) GetPipelines(projectID int, branch string) ([]Pipeline, error)
- func (c *GitLabClient) GetProjectByNamespace(namespace string) (*Project, error)
- type MergeRequest
- type Pipeline
- type Project
- type ProjectMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentBranch ¶
func GetDevelopmentBranch ¶ added in v0.4.0
func GetGitLabProjectNamespace ¶ added in v0.4.0
func GetLocalBranches ¶ added in v0.4.0
func GetRemoteBranches ¶ added in v0.4.0
func GetRemoteURL ¶ added in v0.4.0
Types ¶
type GitLabClient ¶ added in v0.4.0
type GitLabClient struct {
// contains filtered or unexported fields
}
func NewGitLabClient ¶ added in v0.4.0
func NewGitLabClient(cfg *config.Config) *GitLabClient
func (*GitLabClient) CacheProjectID ¶ added in v0.4.0
func (c *GitLabClient) CacheProjectID(namespace string, id int) error
func (*GitLabClient) CreateMergeRequest ¶ added in v0.4.0
func (c *GitLabClient) CreateMergeRequest(namespace string, payload map[string]interface{}) (*MergeRequest, error)
func (*GitLabClient) GetCachedProjectID ¶ added in v0.4.0
func (c *GitLabClient) GetCachedProjectID(namespace string) (int, error)
func (*GitLabClient) GetMergeRequests ¶ added in v0.4.0
func (c *GitLabClient) GetMergeRequests(namespace, sourceBranch string) ([]MergeRequest, error)
func (*GitLabClient) GetPipelines ¶ added in v0.4.0
func (c *GitLabClient) GetPipelines(projectID int, branch string) ([]Pipeline, error)
func (*GitLabClient) GetProjectByNamespace ¶ added in v0.4.0
func (c *GitLabClient) GetProjectByNamespace(namespace string) (*Project, error)
type MergeRequest ¶ added in v0.4.0
type MergeRequest struct {
ID int `json:"id"`
IID int `json:"iid"`
ProjectID int `json:"project_id"`
Title string `json:"title"`
Description string `json:"description"`
State string `json:"state"`
WebURL string `json:"web_url"`
SourceBranch string `json:"source_branch"`
TargetBranch string `json:"target_branch"`
References struct {
Full string `json:"full"`
} `json:"references"`
}
type ProjectMap ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.