We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39cef9e commit f1c1cfaCopy full SHA for f1c1cfa
git-open-pr
@@ -0,0 +1,15 @@
1
+#!/bin/bash
2
+
3
+set -e
4
5
+# import dependency
6
+parentPath=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
7
+. "$parentPath/os-open"
8
9
+# Check if params are enough to go ahead.
10
+prNum=$1
11
+test -z "$prNum" && echo "Please provide pull request number to open." 1>&2 && exit 1
12
13
+gitUserAndProject="$(git config --get remote.origin.url | cut -d : -f 2 | cut -d . -f 1)"
14
15
+$OS_OPEN "https://github.com/$gitUserAndProject/pull/$prNum"
0 commit comments