aboutsummaryrefslogtreecommitdiffstats
path: root/code-review-gh-start
diff options
context:
space:
mode:
authorTeddy Wing2023-07-27 00:24:17 +0200
committerTeddy Wing2023-07-27 00:24:17 +0200
commit00e9d626712dc1b201eb2380cf21ebe2169121d7 (patch)
tree908381e26528b0dbdd0c36ca8e2f1ee793d43448 /code-review-gh-start
parentaea58342b68a53c58bd6f14aa9ea8b44d713d368 (diff)
downloadcode-review-00e9d626712dc1b201eb2380cf21ebe2169121d7.tar.bz2
code-review-gh-start: Idea to get merge base from GitHub pull request
To alleviate dealing with repositories that don't use "master" as their master branch.
Diffstat (limited to 'code-review-gh-start')
-rwxr-xr-xcode-review-gh-start25
1 files changed, 25 insertions, 0 deletions
diff --git a/code-review-gh-start b/code-review-gh-start
new file mode 100755
index 0000000..2bfa980
--- /dev/null
+++ b/code-review-gh-start
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# Copyright (c) 2023 Teddy Wing
+#
+# This file is part of Code Review.
+#
+# Code Review is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Code Review is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Code Review. If not, see <https://www.gnu.org/licenses/>.
+
+# Like code-review-start, but get the merge base from the associate GitHub pull
+# request.
+
+merge_base='TODO'
+
+code-review-start "$merge_base"