-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #864 from v-y-a-s/pr
Updated the git pull-request command to use personal access token instead of basic auth.
- Loading branch information
Showing
4 changed files
with
45 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,13 @@ 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. | ||
A personal access token is required for making the API call to open the pull request(s) in GitHub. [API Documentation here](https://docs.github.com/en/rest/reference/pulls#create-a-pull-request) | ||
|
||
Make sure the personal access token has the right `OAuth` scopes for the repo(s) | ||
|
||
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.github-personal-access-token <other-acc-personal-access-token>` | ||
|
||
## OPTIONS | ||
|
||
|
@@ -30,7 +36,6 @@ Everything up-to-date | |
base [master]: | ||
GitHub two-factor authentication code (leave blank if not set up): | ||
Enter host password for user '[email protected]': | ||
... | ||
``` | ||
|
||
|