From 193a6dd2a86bf56544e5f07d25815cdf2a4cce47 Mon Sep 17 00:00:00 2001 From: zhiyanfoo Date: Fri, 11 Nov 2022 23:10:57 -0500 Subject: [PATCH] fix base branch in the pull-request command (#1003) --- bin/git-pull-request | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/git-pull-request b/bin/git-pull-request index 3e52a0e..5787da1 100755 --- a/bin/git-pull-request +++ b/bin/git-pull-request @@ -72,7 +72,7 @@ echo if [ -z "$base" ] then - base="master" + base="$(git_extra_default_branch)" fi body=$(json "$title" "$body" "$branch" "$base") @@ -82,4 +82,4 @@ curl \ -H "Accept: application/vnd.github.v3+json" \ -H "Authorization: token $github_personal_access_token" \ -H "X-GitHub-OTP: $mfa_code" \ - "https://api.github.com/repos/$project/pulls" -d "$body" \ No newline at end of file + "https://api.github.com/repos/$project/pulls" -d "$body"