Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdPullsCheckout = cli.Command{ Name: "checkout", Usage: "Locally check out the given PR", Description: `Locally check out the given PR`, Action: runPullsCheckout, ArgsUsage: "<pull index>", Flags: flags.AllDefaultFlags, }
CmdPullsCheckout is a command to locally checkout the given PR
View Source
var CmdPullsClean = cli.Command{ Name: "clean", Usage: "Deletes local & remote feature-branches for a closed pull request", Description: `Deletes local & remote feature-branches for a closed pull request`, ArgsUsage: "<pull index>", Action: runPullsClean, Flags: append([]cli.Flag{ &cli.BoolFlag{ Name: "ignore-sha", Usage: "Find the local branch by name instead of commit hash (less precise)", }, }, flags.AllDefaultFlags...), }
CmdPullsClean removes the remote and local feature branches, if a PR is merged.
View Source
var CmdPullsCreate = cli.Command{ Name: "create", Usage: "Create a pull-request", Description: "Create a pull-request", Action: runPullsCreate, Flags: append([]cli.Flag{ &cli.StringFlag{ Name: "head", Usage: "Set head branch (default is current one)", }, &cli.StringFlag{ Name: "base", Aliases: []string{"b"}, Usage: "Set base branch (default is default branch)", }, &cli.StringFlag{ Name: "title", Aliases: []string{"t"}, Usage: "Set title of pull (default is head branch name)", }, &cli.StringFlag{ Name: "description", Aliases: []string{"d"}, Usage: "Set body of new pull", }, }, flags.AllDefaultFlags...), }
CmdPullsCreate creates a pull request
View Source
var CmdPullsList = cli.Command{ Name: "ls", Aliases: []string{"list"}, Usage: "List pull requests of the repository", Description: `List pull requests of the repository`, Action: RunPullsList, Flags: flags.IssuePRFlags, }
CmdPullsList represents a sub command of issues to list pulls
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.