Skip to content

Remove Setup-BranchRuleset.ps1 and Fix-BranchRuleset.ps1 (kept canonical in repo-template)#60

Merged
Chris-Wolfgang merged 5 commits into
mainfrom
chore/template-drift-fixes
Apr 30, 2026
Merged

Remove Setup-BranchRuleset.ps1 and Fix-BranchRuleset.ps1 (kept canonical in repo-template)#60
Chris-Wolfgang merged 5 commits into
mainfrom
chore/template-drift-fixes

Conversation

@Chris-Wolfgang

Copy link
Copy Markdown
Owner

Summary

Removes:

  • scripts/Setup-BranchRuleset.ps1
  • scripts/Fix-BranchRuleset.ps1

These are kept canonical only in repo-template since 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-template or use the API directly.

Branch

Named chore/template-drift-fixes so further drift fixes can be added as additional commits to the same PR.

Chris-Wolfgang and others added 5 commits April 28, 2026 21:06
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>
@Chris-Wolfgang Chris-Wolfgang merged commit eefe053 into main Apr 30, 2026
7 of 8 checks passed
@Chris-Wolfgang Chris-Wolfgang deleted the chore/template-drift-fixes branch April 30, 2026 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant