[WIP] Block automatic retry for retry-blocked Copilot PR topics - #50089
Merged
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot stopped work on behalf of
pelikhan due to an error
August 3, 2026 21:18
pelikhan
marked this pull request as ready for review
August 3, 2026 22:35
Contributor
There was a problem hiding this comment.
Pull request overview
Adds retry-block detection to Issue Monster to prevent repeated Copilot dispatches.
Changes:
- Detects topics with multiple closed, unmerged Copilot PRs.
- Excludes and reports retry-blocked issues for human review.
- Regenerates the compiled workflow.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/issue-monster.md |
Adds retry detection, filtering, outputs, and agent instructions. |
.github/workflows/issue-monster.lock.yml |
Regenerates the compiled workflow. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 5
- Review effort level: Balanced
Comment on lines
+122
to
+124
| // Topics where repeated Copilot attempts were closed without merging. | ||
| // A maintainer must remove this label before a new attempt is dispatched. | ||
| 'copilot-retry-blocked' |
Comment on lines
+269
to
+273
| const closedPRResponse = await github.rest.search.issuesAndPullRequests({ | ||
| q: closedPRQuery, | ||
| per_page: 100, | ||
| sort: 'created', | ||
| order: 'desc' |
Comment on lines
+285
to
+288
| } catch (error) { | ||
| // A failed pre-flight check must not block the run; fall back to no topic data. | ||
| core.warning(`Could not build retry-blocked topic map: ${error.message}`); | ||
| } |
| issue_numbers: ${{ steps.search.outputs.issue_numbers }} | ||
| issue_list: ${{ steps.search.outputs.issue_list }} | ||
| issue_context: ${{ steps.search.outputs.issue_context }} | ||
| retry_blocked_list: ${{ steps.search.outputs.retry_blocked_list }} |
Comment on lines
+702
to
+705
| For each issue in the retry-blocked list (up to the `add_comment` limit, and only if you have not already commented on it in a prior run), post a checkpoint comment asking for human review: | ||
|
|
||
| ``` | ||
| safeoutputs/add_comment(item_number=<issue_number>, body="🛑 **Retry blocked — human review required**\n\nThis topic already has prior Copilot pull requests that were closed without merging. Automatic re-dispatch is disabled to avoid spending another agent session on a blocked topic.\n\nA maintainer should review the prior closed PRs, clarify the requirements, and then add a 'retry approved' comment (or remove the `copilot-retry-blocked` label) before this issue is reassigned.") |
Contributor
|
🎉 This pull request is included in a new release. Release: |
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.
issue-monster.md)copilot-retry-blockedfrom auto-assignmentmake recompile)