api

package
v0.0.0-...-0e456dd Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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