Skip to content

Run the issue-labeler over pull requests using polling#1464

Open
Copilot wants to merge 2 commits intomainfrom
copilot/replicate-dotnet-runtime-change
Open

Run the issue-labeler over pull requests using polling#1464
Copilot wants to merge 2 commits intomainfrom
copilot/replicate-dotnet-runtime-change

Conversation

Copy link
Contributor

Copilot AI commented Feb 7, 2026

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

  • Add cron schedule - Poll every 5 minutes for open, unlabeled PRs that have been updated since the last polling run (plus 5 minute overlap)
  • Make workflow_dispatch input optional - Allow empty PR number list to force polling behavior
  • Add poll-pull-requests job - Query open PRs, filter to those missing area-* labels, output comma-separated list
  • Update predict-pull-label job - Add step to determine PR source (workflow_dispatch input, polling output, or event number), skip processing when list is empty

This 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

Replicate the change in dotnet/runtime#124023. Use the same PR title and description, adding a link to the dotnet/runtime#124023 PR in the bottom of the description for reference. Do not change any of the other issue labeling configuration.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

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
Copilot AI requested a review from jeffhandley February 7, 2026 22:25
@jeffhandley jeffhandley marked this pull request as ready for review February 7, 2026 22:39
Copilot AI review requested due to automatic review settings February 7, 2026 22:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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_dispatch pulls input optional, where an empty value triggers polling behavior.
  • Introduces a poll-pull-requests job 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.

@jeffhandley jeffhandley enabled auto-merge (squash) February 8, 2026 00:02
@jeffhandley jeffhandley requested a review from joperezr February 14, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants