mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Remove $user
This commit is contained in:
parent
238038139d
commit
73bb1e0f59
|
|
@ -28,16 +28,6 @@ json() {
|
|||
EOF
|
||||
}
|
||||
|
||||
# user
|
||||
|
||||
user=$(git config user.email)
|
||||
|
||||
if [ -z "$user" ]; then
|
||||
user="$EMAIL"
|
||||
fi
|
||||
|
||||
test -z "$user" && abort "git config user.email required"
|
||||
|
||||
# personal access token
|
||||
# config name is github-personal-access-token '_' is not allowed in git config
|
||||
|
||||
|
|
@ -92,5 +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"
|
||||
|
||||
"https://api.github.com/repos/$project/pulls" -d "$body"
|
||||
|
|
@ -8,8 +8,6 @@
|
|||
.SH "DESCRIPTION"
|
||||
Create pull request for a project on GitHub via command line\.
|
||||
.P
|
||||
Uses the email from \fBgit config user\.email\fR to open the pull request\.
|
||||
.P
|
||||
Personal access token is required for making API call to open the pull request in Github\.
|
||||
.P
|
||||
Make sure the personal access token has the right \fBOAuth\fR scopes for the repo(s)
|
||||
|
|
|
|||
|
|
@ -83,8 +83,6 @@
|
|||
|
||||
<p>Create pull request for a project on GitHub via command line.</p>
|
||||
|
||||
<p>Uses the email from <code>git config user.email</code> to open the pull request.</p>
|
||||
|
||||
<p>Personal access token is required for making API call to open the pull request in Github.</p>
|
||||
|
||||
<p>Make sure the personal access token has the right <code>OAuth</code> scopes for the repo(s)</p>
|
||||
|
|
|
|||
|
|
@ -9,8 +9,6 @@ git-pull-request(1) -- Create pull request for GitHub project
|
|||
|
||||
Create pull request for a project on GitHub via command line.
|
||||
|
||||
Uses the email from `git config user.email` to open the pull request.
|
||||
|
||||
Personal access token is required for making API call to open the pull request in Github.
|
||||
|
||||
Make sure the personal access token has the right `OAuth` scopes for the repo(s)
|
||||
|
|
|
|||
Loading…
Reference in a new issue