feat: auto-request Copilot fix when CI fails on Renovate PRs - #2168
Merged
Conversation
Copilot
AI
changed the title
feat: ask Copilot to fix CI failures on Renovate PRs
feat: auto-request Copilot fix when CI fails on Renovate PRs
Jun 22, 2026
Copilot created this pull request from a session on behalf of
pmcelhaney
June 22, 2026 11:39
View session
pmcelhaney
marked this pull request as ready for review
June 22, 2026 14:06
pmcelhaney
approved these changes
Jun 22, 2026
pmcelhaney
enabled auto-merge
June 22, 2026 14:07
Contributor
There was a problem hiding this comment.
Pull request overview
Adds automation to request an @copilot fix when CI fails on Renovate dependency-update PRs, so dependency bumps that break the build get faster turnaround without manual triage.
Changes:
- Introduces a
workflow_run-triggered workflow that detects failed “CI Checks” runs forrenovate/*branches. - Locates the associated open PR and posts a single deduplicated
@copilotcomment with the failed-run URL.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.
Summary
Adds a workflow that detects CI failures on Renovate dependency-update PRs and automatically pings
@copilotto investigate and propose a fix.Original Prompt
When CI fails after Renovate updates a dependency, can the CI script automatically ask Copilot to fix it?
Manual acceptance tests
renovate/*branch, a@copilotcomment with the failed-run URL appears on the PR.renovate/*branch produces no comment.Tasks
.github/workflows/renovate-copilot-fix.yamlworkflow_runon "CI Checks"completed— runs in base-repo context to getpull-requests: writeeven for Renovate's sandboxed PRsconclusion == 'failure'andhead_branchstarts withrenovate/<!-- renovate-copilot-fix-marker -->in posted comment body