Add Copilot auto-fix workflow for dependabot PRs#19508
Open
Copilot wants to merge 1 commit into
Open
Conversation
Agent-Logs-Url: https://github.com/Azure/bicep/sessions/c3bf4e81-3452-4699-a931-6fb97149e548 Co-authored-by: brendandburns <5751682+brendandburns@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
brendandburns
April 24, 2026 01:33
View session
Contributor
|
Test this change out locally with the following install scripts (Action run 24867668643) VSCode
Azure CLI
|
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.
Dependabot PRs that break tests or land with merge conflicts require manual intervention. This workflow automates prompting GitHub Copilot to handle both cases.
What's added
.github/workflows/copilot-auto-fix.yml— two jobs:fix-failing-tests— fires onworkflow_runcompletion (Build,failure) for anydependabot/*branch. Resolves the associated open PR, deduplicates by scanning existing comments for the run ID, then posts a@copilotcomment with repo-specific guidance:dotnet test -- --filter TestCategory=Baseline --test-parameter SetBaseLine=true)vscode-bicep/vscode-bicep-uifix-merge-conflicts— fires onpull_requestevents fromdependabot[bot]. PollsmergeStateStatus(10 s intervals, up to ~100 s) until GitHub resolves mergeability, then posts a@copilotcomment onDIRTYPRs asking it to resolve conflicts while preserving dependabot's version bumps. Deduplicates to avoid repeat comments on re-sync.Microsoft Reviewers: Open in CodeFlow