gitlab

package
v0.0.0-...-3db7cc1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitLabRichClient

type GitLabRichClient struct {
	Client     *gitlab.Client
	Owner      string
	Repository string
}

func NewGitLabClient

func NewGitLabClient(serverURL *string, repoURL *string, token *string) (glrc *GitLabRichClient, err error)

NewGitLabClient Creates a new GitLab Client Needs the Environment Variables: GITHUB_TOKEN Needs the optional Environment Variables: GITHUB_ENTERPRISE_SERVER_URL

func (*GitLabRichClient) CreateRelease

func (glrc *GitLabRichClient) CreateRelease(tagName string, releaseBranch string, body string) (createdRelease *gitlab.Release, err error)

func (*GitLabRichClient) GetLatestReleaseVersion

func (glrc *GitLabRichClient) GetLatestReleaseVersion() (latestRelease *gitlab.Release, err error)

func (*GitLabRichClient) GetMrInfos

func (glrc *GitLabRichClient) GetMrInfos(mrNumber int) (prInfos *gitlab.MergeRequest, err error)

GetMrInfos retrieves the merge request information from GitLab.

It takes an integer parameter `mrNumber` which represents the merge request number. The function returns a pointer to a `gitlab.MergeRequest` struct and an error.

func (*GitLabRichClient) PublishRelease

func (glrc *GitLabRichClient) PublishRelease(tagName string, releaseBranch string, body string, assets []string) (publishedRelease *gitlab.Release, err error)

Jump to

Keyboard shortcuts

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