From 00e9d626712dc1b201eb2380cf21ebe2169121d7 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 27 Jul 2023 00:24:17 +0200 Subject: 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. --- code-review-gh-start | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 code-review-gh-start (limited to 'code-review-gh-start') 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 . + +# Like code-review-start, but get the merge base from the associate GitHub pull +# request. + +merge_base='TODO' + +code-review-start "$merge_base" -- cgit v1.2.3