v4
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.
Description
This gittea action should use the pi agent framework to run a review through an AI provider and post a comment.
Languages
Shell
96%
Dockerfile
4%