gitlab

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.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 Gitlab

type Gitlab struct {
	// contains filtered or unexported fields
}

Gitlab def

func New

func New(url string, token string) (g *Gitlab)

New new gitlab structure

func (*Gitlab) GetMergeRequestDiff

func (g *Gitlab) GetMergeRequestDiff(projectID, mrID int) (mr *gitlab.MergeRequest, resp *gitlab.Response, err error)

GetMergeRequestDiff ...

func (*Gitlab) GetPipeline

func (g *Gitlab) GetPipeline(projectID, pipelineID int) (pipeline *gitlab.Pipeline, resp *gitlab.Response, err error)

GetPipeline get a pipeline info

func (*Gitlab) ListMRAwardEmoji

func (g *Gitlab) ListMRAwardEmoji(projectID, mrIID, page int) (emojis []*gitlab.AwardEmoji, resp *gitlab.Response, err error)

ListMRAwardEmoji ...

func (*Gitlab) ListMRDiscussions

func (g *Gitlab) ListMRDiscussions(projectID, mrIID, page int) (result []*gitlab.Discussion, resp *gitlab.Response, err error)

ListMRDiscussions ...

func (*Gitlab) ListMRNotes

func (g *Gitlab) ListMRNotes(c context.Context, projectID, mrID, page int) (notes []*gitlab.Note, resp *gitlab.Response, err error)

ListMRNotes get notes of the MR

func (*Gitlab) ListPipelineJobs

func (g *Gitlab) ListPipelineJobs(opt *gitlab.ListJobsOptions, projectID, pipelineID int) (jobList []*gitlab.Job, resp *gitlab.Response, err error)

ListPipelineJobs list all pipeline jobs

func (*Gitlab) ListProjectBranch

func (g *Gitlab) ListProjectBranch(projectID, page int) (branches []*gitlab.Branch, resp *gitlab.Response, err error)

ListProjectBranch ...

func (*Gitlab) ListProjectCommit

func (g *Gitlab) ListProjectCommit(projectID, page int, since, until *time.Time) (commits []*gitlab.Commit, resp *gitlab.Response, err error)

ListProjectCommit ...

func (*Gitlab) ListProjectIssues

func (g *Gitlab) ListProjectIssues(projID, page int, since, until *time.Time) (issues []*gitlab.Issue, resp *gitlab.Response, err error)

ListProjectIssues ...

func (*Gitlab) ListProjectJobs

func (g *Gitlab) ListProjectJobs(projID, page int) (jobs []gitlab.Job, resp *gitlab.Response, err error)

ListProjectJobs get jobs of the project

func (*Gitlab) ListProjectMembers

func (g *Gitlab) ListProjectMembers(projectID, page int) (members []*gitlab.ProjectMember, resp *gitlab.Response, err error)

ListProjectMembers ...

func (*Gitlab) ListProjectMergeRequests

func (g *Gitlab) ListProjectMergeRequests(projectID int, since, until *time.Time, page int) (mrs []*gitlab.MergeRequest, resp *gitlab.Response, err error)

ListProjectMergeRequests list all MR

func (*Gitlab) ListProjectPipelines

func (g *Gitlab) ListProjectPipelines(page, projectID int, status gitlab.BuildStateValue) (pipelineList gitlab.PipelineList, resp *gitlab.Response, err error)

ListProjectPipelines list all pipelines

func (*Gitlab) ListProjectRunners

func (g *Gitlab) ListProjectRunners(projID, page int) (result []*gitlab.Runner, resp *gitlab.Response, err error)

ListProjectRunners ...

func (*Gitlab) ListProjects

func (g *Gitlab) ListProjects(page int) (projects []*gitlab.Project, err error)

ListProjects list all project

func (*Gitlab) MergeBase

func (g *Gitlab) MergeBase(c context.Context, projectID int, refs []string) (commit *gitlab.Commit, resp *gitlab.Response, err error)

MergeBase 获取两个分支最近的合并commit

Jump to

Keyboard shortcuts

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