From 238038139dd923ef364ef25691e083aaef3c6117 Mon Sep 17 00:00:00 2001 From: vyas <10957095+v-y-a-s@users.noreply.github.com> Date: Thu, 6 Aug 2020 13:03:13 +0530 Subject: [PATCH] corrections --- bin/git-pull-request | 8 ++++---- man/git-pull-request.1 | 8 ++++---- man/git-pull-request.html | 8 ++++---- man/git-pull-request.md | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/bin/git-pull-request b/bin/git-pull-request index 4a9a561..7d1b5f7 100755 --- a/bin/git-pull-request +++ b/bin/git-pull-request @@ -39,11 +39,11 @@ fi test -z "$user" && abort "git config user.email required" # personal access token -# config name is personal-access-token '_' is not allowed in git config +# config name is github-personal-access-token '_' is not allowed in git config -personal_access_token=$(git config git-extras.personal-access-token) +github_personal_access_token=$(git config git-extras.github-personal-access-token) -test -z "$personal_access_token" && abort "git config git-extras.personal-access-token required" +test -z "$github_personal_access_token" && abort "git config git-extras.github-personal-access-token required" # branch @@ -90,7 +90,7 @@ body=$(json "$title" "$body" "$branch" "$base") curl \ -X POST \ -H "Accept: application/vnd.github.v3+json" \ - -H "Authorization: token $personal_access_token" \ + -H "Authorization: token $github_personal_access_token" \ -H "X-GitHub-OTP: $mfa_code" \ "https://api.github.com/repos/$project/pulls" -d "$body" diff --git a/man/git-pull-request.1 b/man/git-pull-request.1 index cba668d..3335820 100644 --- a/man/git-pull-request.1 +++ b/man/git-pull-request.1 @@ -10,13 +10,13 @@ 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\. +Personal access token is required for making API call to open the pull request in Github\. .P -Makre sure the personal access token has the right \fBOAuth\fR scopes for the repo(s) +Make sure the personal access token has the right \fBOAuth\fR scopes for the repo(s) .P -use \fBgit config \-\-global \-\-add git\-extras\.personal\-access\-token \fR +Use \fBgit config \-\-global \-\-add git\-extras\.github\-personal\-access\-token \fR .P -if using mutiple accounts, override the global value in the specific repo using \fBgit config git\-extras\.personal\-access\-token \fR +If using mutiple accounts, override the global value in the specific repo using \fBgit config git\-extras\.github\-personal\-access\-token \fR .SH "OPTIONS" .P diff --git a/man/git-pull-request.html b/man/git-pull-request.html index 17f069c..773463d 100644 --- a/man/git-pull-request.html +++ b/man/git-pull-request.html @@ -85,13 +85,13 @@

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.

+

Personal access token is required for making API call to open the pull request in Github.

-

Makre sure the personal access token has the right OAuth scopes for the repo(s)

+

Make sure the personal access token has the right OAuth scopes for the repo(s)

-

use git config --global --add git-extras.personal-access-token <your-personal-access-token>

+

Use git config --global --add git-extras.github-personal-access-token <your-personal-access-token>

-

if using mutiple accounts, override the global value in the specific repo using git config git-extras.personal-access-token <other-acc-personal-access-token>

+

If using mutiple accounts, override the global value in the specific repo using git config git-extras.github-personal-access-token <other-acc-personal-access-token>

OPTIONS

diff --git a/man/git-pull-request.md b/man/git-pull-request.md index 31c473d..3461db1 100644 --- a/man/git-pull-request.md +++ b/man/git-pull-request.md @@ -11,13 +11,13 @@ 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. +Personal access token is required for making API call to open the pull request in Github. -Makre sure the personal access token has the right `OAuth` scopes for the repo(s) +Make sure the personal access token has the right `OAuth` scopes for the repo(s) -use `git config --global --add git-extras.personal-access-token ` +Use `git config --global --add git-extras.github-personal-access-token ` -if using mutiple accounts, override the global value in the specific repo using `git config git-extras.personal-access-token ` +If using mutiple accounts, override the global value in the specific repo using `git config git-extras.github-personal-access-token ` ## OPTIONS