Add Copilot auto-fix workflow for dependabot PRs#19508
Merged
Merged
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 28270038837) VSCode
Azure CLI
|
majastrz
reviewed
Jun 26, 2026
| Please investigate and fix the failing tests so this PR can be merged. Failed run: $RUN_URL | ||
|
|
||
| Things to consider for this repo: | ||
| - **Baseline tests** – if snapshot/baseline files are out of date, regenerate them with |
Member
There was a problem hiding this comment.
Can we point this part to a script? One of these two will do it:
- https://github.com/Azure/bicep/blob/main/scripts/UpdateBaselines.ps1
- https://github.com/Azure/bicep/blob/main/scripts/update_baselines.sh
This way if the command changes (due to test framework shenanigans or anything else really), this will continue working.
majastrz
approved these changes
Jun 26, 2026
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