Documentation ¶
Index ¶
Constants ¶
View Source
const ( ExitCodeOK int = iota //0 ExitCodeError int = iota //1 ExitCodeFileError int = iota //2 )
View Source
const MergeRequestTemplateDir = ".gitlab/merge_request_templates"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateUpdateMergeRequestOption ¶
type CreateUpdateMergeRequestOption struct { Edit bool `` /* 144-byte string literal not displayed */ Title string `short:"i" long:"title" value-name:"<title>" description:"The title of an merge request"` Message string `short:"m" long:"message" value-name:"<message>" description:"The message of an merge request"` Template string `short:"p" long:"template" value-name:"<merge request template>" description:"The template of an merge request"` SourceBranch string `short:"s" long:"source" description:"The source branch"` TargetBranch string `short:"t" long:"target" default:"master" default-mask:"master" description:"The target branch"` StateEvent string `long:"state-event" description:"Change the status. \"opened\", \"closed\""` AssigneeID int `long:"assignee-id" description:"The ID of assignee."` }
type ListMergeRequestOption ¶
type ListMergeRequestOption struct { Num int `` /* 129-byte string literal not displayed */ State string `` /* 184-byte string literal not displayed */ Scope string `` /* 154-byte string literal not displayed */ OrderBy string `` /* 170-byte string literal not displayed */ Sort string `` /* 139-byte string literal not displayed */ Opened bool `short:"o" long:"opened" description:"Shorthand of the state option for \"--state=opened\"."` Closed bool `short:"c" long:"closed" description:"Shorthand of the state option for \"--state=closed\"."` Merged bool `short:"g" long:"merged" description:"Shorthand of the state option for \"--state=merged\"."` CreatedMe bool `short:"r" long:"created-me" description:"Shorthand of the scope option for \"--scope=created-by-me\"."` AssignedMe bool `short:"a" long:"assigned-me" description:"Shorthand of the scope option for \"--scope=assigned-by-me\"."` AllProject bool `short:"A" long:"all-project" description:"Print the merge request of all projects"` }
func (*ListMergeRequestOption) GetScope ¶
func (l *ListMergeRequestOption) GetScope() string
func (*ListMergeRequestOption) GetState ¶
func (l *ListMergeRequestOption) GetState() string
type MergeRequestCommand ¶
type MergeRequestCommand struct { Ui ui.Ui Provider lab.Provider GitClient git.Client EditFunc func(program, file string) error }
func (*MergeRequestCommand) Help ¶
func (c *MergeRequestCommand) Help() string
func (*MergeRequestCommand) Run ¶
func (c *MergeRequestCommand) Run(args []string) int
func (*MergeRequestCommand) Synopsis ¶
func (c *MergeRequestCommand) Synopsis() string
type MergeRequestCommandOption ¶
type MergeRequestCommandOption struct { CreateUpdateOption *CreateUpdateMergeRequestOption `group:"Create, Update Options"` ListOption *ListMergeRequestOption `group:"List Options"` }
type MergeRequestOperation ¶
type MergeRequestOperation int
const ( CreateMergeRequest MergeRequestOperation = iota CreateMergeRequestOnEditor UpdateMergeRequest UpdateMergeRequestOnEditor ShowMergeRequest ListMergeRequest ListMergeRequestAllProject )
Click to show internal directories.
Click to hide internal directories.