Files
pi-review/scripts/review.sh
Markus Hofstetter 81edd958f9 fix: diff generation for PR checkouts
actions/checkout for PRs only fetches refs/pull/N/head into FETCH_HEAD.
Remote tracking branches (origin/main) don't exist.

Fix: explicit refspec fetch (refs/heads/main:refs/remotes/origin/main)
with fallback to GITEA_BASE_REF / GITHUB_BASE_REF for the target branch.
Also removed --filter=blob:none which could cause empty diffs.
Added diagnostic logging for base ref and file stats.
2026-05-19 00:47:01 +02:00

10 KiB
Executable File