Remove Setup-BranchRuleset.ps1 and Fix-BranchRuleset.ps1 (kept canonical in repo-template)#60
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 -- canonical has gained: - concurrency: block (cancels prior runs on the same PR) - permissions: contents: read declaration - with: persist-credentials: false on Checkout - strategy: matrix: language: [csharp] block (in older versions) - actions/checkout@v6, actions/setup-dotnet@v5 (Node 24) No unique features in any repo's existing codeql.yaml -- safe replace. 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>
Cosmetic-only drift: extra blank line + shorter comment wording on the [benchmarks/**/*.cs] header. No rule changes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Restores Directory.Build.props to canonical (centralizes 6 analyzers, bumps Meziantou + Sonar to current). - Removes duplicate analyzer ItemGroup from all 4 csprojs (TestKit, TestKit.Xunit, plus 2 test projects). - Refreshes .editorconfig (#325 + #326). - Refreshes pr.yaml (#322 + #323 + #324). - Refreshes docfx.yaml (#327). - Refreshes coverlet.runsettings to canonical. Release build clean: 0 errors. Pre-existing warnings (netcoreapp3.1 TFM compat for Microsoft.Bcl.Memory / System.Linq.AsyncEnumerable and one CS8603 in TestExtractorTests.cs) are unrelated to this PR. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced 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.
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.