From 742bb155837fe51d0bb7c75358ff115f66b60212 Mon Sep 17 00:00:00 2001 From: Ravikanth C Date: Mon, 6 Jul 2020 19:33:17 +0530 Subject: [PATCH] Update pr.go adding long description for pr merge subcommand to clarify on how the source branch can be retained after a merge --- command/pr.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/command/pr.go b/command/pr.go index 79c65b874..c70ab4da2 100644 --- a/command/pr.go +++ b/command/pr.go @@ -108,6 +108,11 @@ var prReopenCmd = &cobra.Command{ var prMergeCmd = &cobra.Command{ Use: "merge [ | | ]", Short: "Merge a pull request", + Long: `Merge a pull request by providing the pull request number or url or the branch. + + By default, the source branch gets deleted after the merge is complete. + + If the source branch needs be retained, '--delete-branch=false' should be specified.`, Args: cobra.MaximumNArgs(1), RunE: prMerge, } @@ -123,7 +128,7 @@ func prStatus(cmd *cobra.Command, args []string) error { apiClient, err := apiClientForContext(ctx) if err != nil { return err - } + } baseRepo, err := determineBaseRepo(apiClient, cmd, ctx) if err != nil {