command

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

Command Command def.

func New

func New(dao *dao.Dao, gitlab *gitlab.Gitlab) (c *Command)

New ...

func (*Command) BuildContributor

func (c *Command) BuildContributor(repo *model.RepoInfo) (err error)

BuildContributor ...

func (*Command) DeleteRunningTask

func (c *Command) DeleteRunningTask(projID int, mrID int) (err error)

DeleteRunningTask ...

func (*Command) Exec

func (c *Command) Exec(ctx context.Context, cmd string, event *model.HookComment, repo *model.Repo) (err error)

Exec ...

func (*Command) GetAllPathAuth

func (c *Command) GetAllPathAuth(projID int, mrIID int, authBranch string) (pathOwners []model.RequireReviewFolder, err error)

GetAllPathAuth ...

func (*Command) GetAuthBranch

func (c *Command) GetAuthBranch(targetBranch string, authBranches []string) (authBranch string)

GetAuthBranch ...

func (*Command) GetPathAuth

func (c *Command) GetPathAuth(projID int, branch string, path string) (owners []string, reviewers []string, err error)

GetPathAuth ...

func (*Command) HookDelayMerge

func (c *Command) HookDelayMerge(projID int, branch string, mergeInfo *model.MergeInfo) (err error)

HookDelayMerge ...

func (*Command) HookMerge

func (c *Command) HookMerge(projID int, branch string, mergeInfo *model.MergeInfo) (err error)

HookMerge ...

func (*Command) HookPipeline

func (c *Command) HookPipeline(projID int, branch string, pipelineID int) (err error)

HookPipeline ...

func (*Command) ListenTask

func (c *Command) ListenTask()

ListenTask ...

func (*Command) Registers

func (c *Command) Registers()

Registers ...

func (*Command) SaveContributor

func (c *Command) SaveContributor(projID int, branch string, files []string, clean bool) (err error)

SaveContributor ...

func (*Command) UpdateContributor

func (c *Command) UpdateContributor(projID int, mrIID int, sourceBranch string, targetBranch string, authBranches []string) (err error)

UpdateContributor ...

Jump to

Keyboard shortcuts

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