fix base branch in the pull-request command (#1003)

This commit is contained in:
zhiyanfoo 2022-11-11 23:10:57 -05:00 committed by GitHub
parent 2d1aa6daea
commit 193a6dd2a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,7 @@ echo
if [ -z "$base" ] if [ -z "$base" ]
then then
base="master" base="$(git_extra_default_branch)"
fi fi
body=$(json "$title" "$body" "$branch" "$base") body=$(json "$title" "$body" "$branch" "$base")
@ -82,4 +82,4 @@ curl \
-H "Accept: application/vnd.github.v3+json" \ -H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token $github_personal_access_token" \ -H "Authorization: token $github_personal_access_token" \
-H "X-GitHub-OTP: $mfa_code" \ -H "X-GitHub-OTP: $mfa_code" \
"https://api.github.com/repos/$project/pulls" -d "$body" "https://api.github.com/repos/$project/pulls" -d "$body"