From 78836097c31210faae40dff535c48817e6ff6dc4 Mon Sep 17 00:00:00 2001 From: Heath Stewart Date: Fri, 20 Dec 2024 10:49:38 -0800 Subject: [PATCH] Document how to set gh-merge-base Follow-up to PR #9712 --- pkg/cmd/pr/create/create.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/pr/create/create.go b/pkg/cmd/pr/create/create.go index f3bd12870..3bfa768b7 100644 --- a/pkg/cmd/pr/create/create.go +++ b/pkg/cmd/pr/create/create.go @@ -121,7 +121,8 @@ func NewCmdCreate(f *cmdutil.Factory, runF func(*CreateOptions) error) *cobra.Co The base branch for the created PR can be specified using the %[1]s--base%[1]s flag. If not provided, the value of %[1]sgh-merge-base%[1]s git branch config will be used. If not configured, the repository's - default branch will be used. + default branch will be used. Run %[1]sgit config branch.{current}.gh-merge-base {base}%[1]s to configure + the current branch to use the specified merge base. Link an issue to the pull request by referencing the issue in the body of the pull request. If the body text mentions %[1]sFixes #123%[1]s or %[1]sCloses #123%[1]s, the referenced issue