mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-03 07:18:03 +01:00
fix(review): pass 1: ahead and diverged labels, diff-scope needs shared history; preflight refreshes origin/<base> and stops on a diff far beyond the PR (GST-462, HARN-15)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
0d4846cc0a
commit
86b279fcae
8 files changed
+72
-9
No files matched your search
@@ -34,9 +34,9 @@ _default_base() {
|
||||
echo "main"
|
||||
}
|
||||
BASE="${1:-$(_default_base)}"
|
||||
if git show-ref --verify -q "refs/remotes/origin/${BASE}"; then BASE="origin/${BASE}"; fi
|
||||
HEAD_REF=""
|
||||
if [ "${2:-}" = "--head" ]; then HEAD_REF="${3:-}"; fi
|
||||
if [ "$BASE" != HEAD ] && git show-ref --verify -q "refs/remotes/origin/${BASE}" && git merge-base "origin/${BASE}" "${HEAD_REF:-HEAD}" >/dev/null 2>&1; then BASE="origin/${BASE}"; fi
|
||||
|
||||
FRONTEND=false
|
||||
BACKEND=false
|
||||
|
||||
Reference in new issue
Block a user