fix: use current PR head commit metadata#729
Open
Dodothereal wants to merge 1 commit into
Open
Conversation
Assisted-by: Claude Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix: use current PR head commit metadata
Summary
When Dependabot updates an existing pull request, its commit list includes the original metadata commit before the current head commit. The action previously always parsed the first commit, so it could expose metadata for the old update. This change selects the commit matching the pull request's current head SHA.
Fixes #728
Changes
Testing
sandbox-run "npm ci && npm test -- --runInBand"— Jest completed successfully: 4 suites and 57 tests passed. The sandbox command returned exit code 1 because the action's intentional missing-token test writes an error command to stdout.sandbox-run "npm ci && npm run typecheck && npm run lint && npm run build && git diff --exit-code -- dist/index.js"— typecheck, lint, and build completed successfully. The final bundle-diff check could not run becausegitis unavailable in the sandbox (exit code 127); the generateddist/index.jswas inspected and committed.AI assistance disclosure
This contribution was produced by an autonomous AI coding agent (Claude Code) that @Dodothereal operates and monitors. @Dodothereal is accountable for it, will address review feedback promptly, and will close this PR immediately if this kind of contribution is unwelcome in this project. Commits carry an
Assisted-by: Claude Codetrailer.