Skip to content

[WIP] Block automatic retry for retry-blocked Copilot PR topics - #50089

Merged
pelikhan merged 2 commits into
mainfrom
copilot/copilot-opt-block-automatic-retry
Aug 3, 2026
Merged

pelikhan merged 2 commits into
mainfrom
copilot/copilot-opt-block-automatic-retry

Conversation

Copilot AI commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor
  • Add pre-flight retry-blocked check to Copilot task-dispatch workflow (issue-monster.md)
  • Exclude issues labeled copilot-retry-blocked from auto-assignment
  • Instruct agent to comment requesting human review instead of re-dispatching
  • Recompile workflow lock file (make recompile)

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI requested a review from pelikhan August 3, 2026 21:18
@pelikhan
pelikhan marked this pull request as ready for review August 3, 2026 22:35
Copilot AI review requested due to automatic review settings August 3, 2026 22:35
@pelikhan
pelikhan merged commit b9d9d6b into main Aug 3, 2026
1 check passed
@pelikhan
pelikhan deleted the copilot/copilot-opt-block-automatic-retry branch August 3, 2026 22:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.")
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.84.4

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.

[copilot-opt] Block automatic retry for retry-blocked Copilot PR topics (js-integration-live-api, report-formatting normalization)

3 participants