Fix backport workflow to exclude release notes and eng/common files#19019
Merged
Fix backport workflow to exclude release notes and eng/common files#19019
Conversation
Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix backport operations by resolving merge conflicts
Fix backport workflow to exclude release notes and eng/common files
Oct 21, 2025
T-Gro
approved these changes
Nov 10, 2025
Contributor
✅ No release notes required |
abonie
approved these changes
Nov 10, 2025
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.
Problem
Backport operations frequently fail due to merge conflicts in version-specific files:
docs/release-notes/*- Version-specific files that differ between main and release branches (e.g.,11.0.0.mdon main vs10.4.0.mdon release branches)eng/common/*- Shared engineering tooling that may have version-specific differencesExample failure:
Solution
This PR updates
.github/workflows/backport.ymlto use the newadditional_git_am_switchesinput from dotnet/arcade (PR dotnet/arcade#16235) to automatically exclude these problematic paths during backport operations.Changes
Added
additional_git_am_switchesparameter with:--exclude=docs/release-notes/*- Skip version-specific release notes--exclude=eng/common/*- Skip shared engineering tooling--whitespace=fix- Automatically fix trailing whitespace issuesUpdated PR description template to notify users that:
eng/commonfiles are excluded from the backportBenefits
Dependencies
This change depends on dotnet/arcade#16235 being merged, which adds the
additional_git_am_switchesinput to the backport workflow.Testing
Once dotnet/arcade#16235 is available, this can be tested with:
Original prompt
This pull request was created as a result of the following prompt from Copilot chat.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.