Remove Setup-BranchRuleset.ps1 and Fix-BranchRuleset.ps1 (kept canonical in repo-template)#143
Merged
Merged
Conversation
These are run-once scripts for initial repo setup. They are kept canonical in repo-template only. Once a repo exists, the ruleset state is managed via the GitHub API; keeping copies of the scripts in every repo just creates drift. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pure staleness drift -- mostly missing recent canonical additions (Validate release tag step, 3.1.x in setup-dotnet, Node 24 actions in Hawsey/Log-Compressor) and minor whitespace differences. No unique features in any repo's existing release.yaml that needed preserving (IEquatable-Extensions and console-app-template are structurally divergent and intentionally excluded from this sync). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Restores Directory.Build.props to canonical (centralizes 6 analyzers, drops vestigial UsingMicrosoftNETSdk condition on the AdditionalFiles ItemGroup since all csprojs are SDK-style). - Removes duplicate analyzer ItemGroup from all 18 csprojs (src, test, 8 net4.8 examples, 8 net8.0 examples) — now inherited. - Refreshes .editorconfig (#325 + #326). - Refreshes pr.yaml (#322 + #323 + #324). - Refreshes docfx.yaml (#327). - Adds coverlet.runsettings (new from #324). Release build clean: 0 warnings, 0 errors across all TFMs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced Jun 23, 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.
Summary
Removes:
scripts/Setup-BranchRuleset.ps1scripts/Fix-BranchRuleset.ps1These are kept canonical only in
repo-templatesince they are run-once at initial repo creation. Once a repo exists, ruleset state is managed via the GitHub API directly — keeping copies of these scripts in every repo just creates drift to maintain.If you ever need to re-create or repair a ruleset, grab the script from
repo-templateor use the API directly.Branch
Named
chore/template-drift-fixesso further drift fixes can be added as additional commits to the same PR.