diff options
author | Teddy Wing | 2023-07-27 00:24:17 +0200 |
---|---|---|
committer | Teddy Wing | 2023-07-27 00:24:17 +0200 |
commit | 00e9d626712dc1b201eb2380cf21ebe2169121d7 (patch) | |
tree | 908381e26528b0dbdd0c36ca8e2f1ee793d43448 | |
parent | aea58342b68a53c58bd6f14aa9ea8b44d713d368 (diff) | |
download | code-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.
-rwxr-xr-x | code-review-gh-start | 25 |
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" |