Review label management#1610
Merged
simongdavies merged 1 commit intoJul 2, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the “ready-for-review” label automation to a two-stage GitHub Actions pipeline so labels can be removed safely even when the triggering event originates from a fork (where the initial workflow only has a read-only token).
Changes:
- Replaces the previous single workflow with a Stage 1 “collect” workflow that records the PR number as an artifact on
pull_request/pull_request_reviewevents. - Adds a Stage 2 “manage” workflow triggered by
workflow_runthat downloads and validates the artifact, then invokes the org reusable workflow to remove the label when appropriate. - Updates label documentation to reference the new collect/manage workflow pair.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| docs/github-labels.md | Updates docs to reflect the new two-workflow automation. |
| .github/workflows/ready-for-review-label.yml | Renames/retools the workflow into Stage 1 “collect” that uploads the PR number artifact. |
| .github/workflows/ready-for-review-manage.yml | Adds Stage 2 “manage” workflow that reads/validates the PR number and runs the privileged label removal. |
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
7b2aa89 to
835001a
Compare
ludfjig
approved these changes
Jul 2, 2026
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.
Two step process to remove ready-for-review label, allows for removing labels from a PR based on a fork.
Step 1 . Record the PR number that was updated (requires no write permissions) stores the PR number in an artefact tied to the workflow run.
Step 2. Runs when any Step 1 workflow completes, reads the PR number from the artefact and validates it, removes the Label from the PR if necessary