shared-config: avoid collapsing renames during sync commits#449
Merged
Conversation
Use `git diff --no-renames` when collecting staged paths so a synced delete/add pair is committed as separate paths. This keeps deprecated workflow removals in the same sync run that adds their replacement.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the shared-config sync action to avoid Git rename detection when enumerating staged changes, so delete/add pairs are treated as two distinct paths and therefore committed separately. This ensures deprecated workflow removals are captured in the same sync run that introduces their replacements.
Changes:
- Add
--no-renamesto thegit diff --name-only --stagedcall used to collect staged paths for per-path commits.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
SMillerDev
approved these changes
Jul 8, 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.
Use
git diff --no-renameswhen collecting staged paths so a synced delete/add pair is committed as separate paths. This keeps deprecated workflow removals in the same sync run that adds their replacement.For context, this fixes an issue where the rename of the stale-issues-and-prs workflow could not be done in a single sync, like:
stale-issues-and-prs.ymlwas added)stale-issues.ymlwas removed)