Skip to content

Instantly share code, notes, and snippets.

@mrleolink
mrleolink / open-atlassian-stash-pullrequest.sh
Last active February 22, 2017 06:09 — forked from jakub-g/open-atlassian-stash-pullrequest.sh
Open Atlassian Stash pull request from command line (open browser at the right URL)
#!/bin/bash
##################################################################
# Open Atlassian Stash pull request from command line.
# (opens the default browser at the proper URL with data prefilled)
#
# It infers current branch name, repo name, current user name, from git config.
############################### CONFIG ###########################
URL_PREFIX="https://YOU_GIT_DOMAIN.com/your/project/path/compare/commits?commits&"