Created
May 11, 2018 13:43
-
-
Save glenux/665de987094cb871e0a0d4652eb61874 to your computer and use it in GitHub Desktop.
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 | |
org="$(git remote get-url origin |awk -F/ '{ print $4; }')" | |
project="$(basename "$(git rev-parse --show-toplevel)")" | |
branch=$(git rev-parse --abbrev-ref HEAD) | |
url="https://bitbucket.org/${org}/${project}/pull-request/new?source=${branch}&t=1" | |
xdg-open "$url" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment