Add a workflow to automatically flag PRs without a signed CLA#2627
Merged
GCHQDeveloper581 merged 2 commits intoJul 3, 2026
Conversation
* use commit hash to select action * refine bot name * refine comment identification regexs * use AWAITING_LABEL env variable in a more conventional way
Contributor
Author
|
Note: because this only triggers when the PR is created (etc) or commented on (*) there will need to be some out-of-band action (whether fully manual, or scripted) to ensure the "awaiting cla" flag is set correctly on legacy PRs. (*) and in the steady-state I think this is the correct (most efficient) way to do it. |
C85297
approved these changes
Jul 2, 2026
Contributor
Author
|
A script has now been run on the repo to check that all (and only) open PRs with unsigned CLA do have the "awaiting cla" label set. |
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.
Description
Add a workflow that runs when a PR is created/reopened/resynced, or commented up that checks for any CLA Assistant comments and sets/clears the "awaiting cla" label according to the CLA status recorder in such comments
Existing Issue
This is the first half of the solution to #2626
AI disclosure
Initial coding by Claude Opus 4.8
Subsequently checked and neatened by hand. I understand, and accept responsibility for, all the resulting code.
Test Coverage
Automated testing not really possible. Will need some careful supervision in early operation.