Skip to content

ci: diff changed files against the PR target branch#340

Merged
tyeth merged 3 commits into
mainfrom
ci/diff-against-pr-target
Jul 2, 2026
Merged

ci: diff changed files against the PR target branch#340
tyeth merged 3 commits into
mainfrom
ci/diff-against-pr-target

Conversation

@tyeth

@tyeth tyeth commented Jul 2, 2026

Copy link
Copy Markdown
Member

Summary

Extracted from #337 (commit 319af49) so the CI fix can land on main separately.

The "List All Changed Files" step in validate.yml always diffed against origin/main, so PRs targeting v2 swept every v2-vs-main difference (.gitignore, etc.) into the filename validation and flagged them spuriously.

This changes the step to diff against the PR's actual target branch: v2 when the PR targets v2, otherwise main (behavior unchanged for PRs against main and for workflow_dispatch).

🤖 Generated with Claude Code

The "List All Changed Files" step always diffed against origin/main, so PRs
targeting v2 swept every v2-vs-main difference (.gitignore, etc.) into the
filename validation and flagged them spuriously. Diff against v2 when the PR
targets v2; otherwise diff against main (unchanged for main and
workflow_dispatch).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
tyeth and others added 2 commits July 2, 2026 16:48
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@tyeth tyeth merged commit 093472f into main Jul 2, 2026
15 checks passed
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.

2 participants