Run the issue-labeler over pull requests using polling#14395
Open
Run the issue-labeler over pull requests using polling#14395
Conversation
Co-authored-by: jeffhandley <1031940+jeffhandley@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Replicate the change in 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
Adds a scheduled polling mode to the PR label prediction workflow so PRs that don’t trigger the normal labeler execution (e.g., Copilot-authored PRs with reduced permissions or transient workflow interruptions) can still get area- labels applied.
Changes:
- Added a 5-minute
scheduletrigger and madeworkflow_dispatchpullsinput optional (empty input triggers polling behavior). - Added a
poll-pull-requestsjob to find open PRs missingarea-labels, using “updated since last run” with a 5-minute overlap. - Updated the
predict-pull-labeljob to support three modes: explicit PR list, polling mode, and normalpull_request_target.
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
Copilot-authored PRs run with reduced workflow permissions, preventing automatic issue-labeler execution. This adds scheduled polling (every 5 minutes) to the PR label prediction workflow to catch unlabeled PRs from Copilot and service interruptions.
Key changes:
pullsinput triggers polling behaviorpoll-pull-requestsjob: Queries open PRs withoutarea-labels updated since last run (with 5-minute overlap)predict-pull-labeljob: Handles three input modes: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.
Checklist
<remarks />and<code />elements on your triple slash comments?aspire.devissue:Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/dotnet/runtime/pulls/124023/usr/bin/curl curl -s -H Accept: application/vnd.github.v3+json REDACTED(http block)/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.