Skip to content

fix(ng-dev/pr): prevent CheckRun status map fallthrough and require CheckRun type in assertSignedCla - #4041

Merged
josephperrott merged 2 commits into
angular:mainfrom
josephperrott:fix-cla-status-map
Oct 14, 2026
Merged

josephperrott merged 2 commits into
angular:mainfrom
josephperrott:fix-cla-status-map

Conversation

@josephperrott

Copy link
Copy Markdown
Member

Re-applies the fix for preventing CheckRun fallthrough into StatusContext and isolating CheckRun and StatusContext entries in statusMap from commit a43054d (reverted in 1ae310e), followed by updating assertSignedCla to require type === 'check' matching the CheckRun status type reported by the Google CLA GitHub App.

…SignedCla and prevent CheckRun status map overwrite\""

This reverts commit 1ae310e.
Google CLA check results are reported as a CheckRun (type "check") by the Google CLA GitHub App rather than a commit status (type "status"). Update assertSignedCla to require type === 'check' for cla/google.
@josephperrott josephperrott added the action: merge The PR is ready for merge by the caretaker label Oct 14, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request resolves potential collisions between GitHub CheckRuns and StatusContexts with identical names by prefixing status map keys with their respective types, and adds missing break statements to the switch block in getStatusesForPullRequest. Additionally, the CLA validation is updated to specifically require a passing CheckRun of type 'check' named 'cla/google', supported by new unit tests. I have no further feedback to provide as there are no review comments.

@josephperrott
josephperrott merged commit 2e1b5f7 into angular:main Oct 14, 2026
17 checks passed
@josephperrott

Copy link
Copy Markdown
Member Author

This PR was merged into the repository. The changes were merged into the following branches:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants