c3aafc3450
The shallow fetch (--depth=1) does not bring the PR head branch name as a ref, causing: fatal: ambiguous argument 'origin/gandalf/pri-1593-fix-main'. Fix: git diff origin/$BASE_REF HEAD (already checked out at github.sha) instead of git diff origin/$BASE_REF origin/$HEAD_REF Co-Authored-By: Paperclip <noreply@paperclip.ing>