Skip to content

Fix empty-diff failure in the PR blast-radius gate - #3

Merged
Anuragp22 merged 1 commit into
masterfrom
fix/pr-analysis-diff
Jul 13, 2026
Merged

Fix empty-diff failure in the PR blast-radius gate#3
Anuragp22 merged 1 commit into
masterfrom
fix/pr-analysis-diff

Conversation

@Anuragp22

Copy link
Copy Markdown
Owner

The dogfooding gate failed on PR #2 because git diff origin/master...HEAD yields an empty diff on the merge-commit checkout, which analyze reports as exit 3 (tool failure). Diff the PR's base..head from the event SHAs instead, and treat 'no changes' as a pass.

Note: pull_request workflows run the file from the base branch, so this fix takes effect for PRs opened after it merges.

🤖 Generated with Claude Code

On a pull_request the checkout is the merge commit, so `git diff
origin/<base>...HEAD` could produce an empty diff — which analyze reports as
a tool failure (exit 3), failing the gate on every PR. Diff the PR's own
base..head from the event SHAs instead, and treat "no changes" as a pass
rather than a failure.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BcVscS2c2WCee2ZcU353bF
@Anuragp22
Anuragp22 merged commit 93fc0e0 into master Jul 13, 2026
4 of 5 checks passed
@Anuragp22
Anuragp22 deleted the fix/pr-analysis-diff branch July 13, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant