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:
garrytanandcapy-ai[bot] committed 2026-10-31 15:30:22 +00:00
1 parent 0d4846cc0a
commit 86b279fcae
8 files changed
+72 -9

No files matched your search

+1 -1
View File
@@ -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