mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
fix base branch in the pull-request command (#1003)
This commit is contained in:
parent
2d1aa6daea
commit
193a6dd2a8
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue