Run the issue-labeler over pull requests using polling#1464
Open
Run the issue-labeler over pull requests using polling#1464
Conversation
Co-authored-by: jeffhandley <1031940+jeffhandley@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Replicate change from dotnet/runtime#124023
Run the issue-labeler over pull requests using polling
Feb 7, 2026
jeffhandley
approved these changes
Feb 7, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the pull-request label prediction workflow to support a polling mode (via cron schedule or empty workflow_dispatch input) so PRs that missed labeling due to reduced token permissions (e.g., Copilot-authored PRs) can still get area-* labels.
Changes:
- Adds a 5-minute cron schedule to poll for open PRs missing
area-*labels. - Makes the
workflow_dispatchpullsinput optional, where an empty value triggers polling behavior. - Introduces a
poll-pull-requestsjob and updates the prediction job to determine which PR numbers to process (and skip work when none are found).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Copilot-authored pull requests run workflows with permissions lower than other PRs (including those submitted by external contributors). This blocks the issue-labeler workflow from being able to run on those PRs, leaving a prompt for the workflow to be approved.
Changes
area-*labels, output comma-separated listThis catches PRs that miss labeling due to permission restrictions or GitHub service interruptions.
Addresses (dotnet/issue-labeler#105) Pull Request Labeling does not run automatically for Copilot PRs for this repository.
Replicates dotnet/.github#20 and dotnet/runtime#124023.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.