Created
July 26, 2020 20:45
-
-
Save t3h2mas/9178afa9ef08c92c0f46336714770768 to your computer and use it in GitHub Desktop.
Open the github new PR form in a browser for the current branch (mac)
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
#!/bin/bash | |
org="$(git remote get-url origin | cut -d '/' -f 4)" | |
repo="$(basename $(git rev-parse --show-toplevel))" | |
branch="$(git rev-parse --abbrev-ref HEAD)" | |
open "https://github.com/${org}/${repo}/pull/new/${branch}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment