Sync from dev @ 14435d1
Source: main (14435d1) Excluded: live tenant exports, generated artifacts, and dev-only tooling.
This commit is contained in:
@@ -205,7 +205,14 @@ def main() -> int:
|
||||
pr = prs[0]
|
||||
pr_id = int(pr.get("pullRequestId"))
|
||||
|
||||
_run_git(args.repo_root, ["fetch", "--quiet", "origin", baseline_branch, drift_branch])
|
||||
_run_git(args.repo_root, ["fetch", "--quiet", "origin", baseline_branch])
|
||||
try:
|
||||
_run_git(args.repo_root, ["fetch", "--quiet", "origin", drift_branch])
|
||||
except RuntimeError as exc:
|
||||
if "couldn't find remote ref" in str(exc).lower() or "could not find remote ref" in str(exc).lower():
|
||||
print(f"Drift branch '{drift_branch}' not found on origin; nothing to reject.")
|
||||
return 0
|
||||
raise
|
||||
diff_paths = _run_diff_name_only(args.repo_root, baseline_branch, drift_branch)
|
||||
changed_paths = {
|
||||
p.strip()
|
||||
|
||||
Reference in New Issue
Block a user