Documentation ¶
Index ¶
- type GitLabClient
- func (g GitLabClient) CreateTemplate(ProjectID int, TemplateName string, TemplateBody string, filePath string) error
- func (g GitLabClient) PushIssueTemplate(ProjectID int, TemplateName string, TemplateBody string) error
- func (g GitLabClient) UpdateTemplate(ProjectID int, TemplateName string, TemplateBody string, filePath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitLabClient ¶
type GitLabClient struct { Client *gitlab.Client DryRun bool }
GitLabClient is a GitLab API client with some project options
func NewClient ¶
func NewClient(args *config.Config) GitLabClient
NewClient creates a new API client to a GitLab endpoint
func (GitLabClient) CreateTemplate ¶
func (g GitLabClient) CreateTemplate(ProjectID int, TemplateName string, TemplateBody string, filePath string) error
CreateTemplate creates an issue template by pushing a new file to master
func (GitLabClient) PushIssueTemplate ¶
func (g GitLabClient) PushIssueTemplate(ProjectID int, TemplateName string, TemplateBody string) error
PushIssueTemplate pushes the issue template to the target repo in .gitlab/issue_templates/
func (GitLabClient) UpdateTemplate ¶
func (g GitLabClient) UpdateTemplate(ProjectID int, TemplateName string, TemplateBody string, filePath string) error
UpdateTemplate creates an issue template by pushing a new file to master
Click to show internal directories.
Click to hide internal directories.