Name flag delete-branch
Co-Authored-By: Nate Smith <vilmibm@neongrid.space>
This commit is contained in:
parent
214be16d42
commit
24dece9418
1 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ func init() {
|
|||
prCmd.AddCommand(prCloseCmd)
|
||||
prCmd.AddCommand(prReopenCmd)
|
||||
prCmd.AddCommand(prMergeCmd)
|
||||
prMergeCmd.Flags().BoolP("delete", "d", true, "Delete the local branch after merge")
|
||||
prMergeCmd.Flags().BoolP("delete-branch", "d", true, "Delete the local branch after merge")
|
||||
prMergeCmd.Flags().BoolP("merge", "m", true, "Merge the commits with the base branch")
|
||||
prMergeCmd.Flags().BoolP("rebase", "r", false, "Rebase the commits onto the base branch")
|
||||
prMergeCmd.Flags().BoolP("squash", "s", false, "Squash the commits into one commit and merge it into the base branch")
|
||||
|
|
@ -475,7 +475,7 @@ func prMerge(cmd *cobra.Command, args []string) error {
|
|||
}
|
||||
|
||||
mergeMethod := api.PullRequestMergeMethodMerge
|
||||
deleteBranch, err := cmd.Flags().GetBool("delete")
|
||||
deleteBranch, err := cmd.Flags().GetBool("delete-branch")
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue