-
-
Save bradymholt/4261a6c181931b6e32172d35b9743ed6 to your computer and use it in GitHub Desktop.
Open GitHub Pull Request in Browser for Current Working Branch
This file contains hidden or 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 | |
# Opens GitHub PR for the current branch | |
BRANCH=$(git branch | grep ^* | sed 's/* //' ) | |
URL="https://github.$(git config remote.origin.url | cut -f2 -d. | tr ':' /)/pull/${BRANCH}" | |
open $URL% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment