diff --git a/bin/git-pull-request b/bin/git-pull-request index 7d1b5f7..225c3e1 100755 --- a/bin/git-pull-request +++ b/bin/git-pull-request @@ -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" \ No newline at end of file diff --git a/man/git-pull-request.1 b/man/git-pull-request.1 index 3335820..3e3986e 100644 --- a/man/git-pull-request.1 +++ b/man/git-pull-request.1 @@ -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) diff --git a/man/git-pull-request.html b/man/git-pull-request.html index 773463d..eb0ed5a 100644 --- a/man/git-pull-request.html +++ b/man/git-pull-request.html @@ -83,8 +83,6 @@

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)

diff --git a/man/git-pull-request.md b/man/git-pull-request.md index 3461db1..124b241 100644 --- a/man/git-pull-request.md +++ b/man/git-pull-request.md @@ -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)