Skip to content

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

Closed
tyeth-ai-assisted wants to merge 1 commit into
adafruit:mainfrom
tyeth-ai-assisted:ci/diff-against-pr-target
Closed

ci: diff changed files against the PR target branch#339
tyeth-ai-assisted wants to merge 1 commit into
adafruit:mainfrom
tyeth-ai-assisted:ci/diff-against-pr-target

Conversation

@tyeth-ai-assisted

Copy link
Copy Markdown

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

tyeth commented Jul 2, 2026

Copy link
Copy Markdown
Member

Superseded by a PR from the adafruit repo branch directly.

@tyeth tyeth closed this Jul 2, 2026
@tyeth-ai-assisted tyeth-ai-assisted deleted the ci/diff-against-pr-target branch July 2, 2026 15:39
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