Skip to content

Sync missing template configs and scripts#19

Merged
Chris-Wolfgang merged 2 commits into
mainfrom
chore/sync-template-configs
Apr 17, 2026
Merged

Sync missing template configs and scripts#19
Chris-Wolfgang merged 2 commits into
mainfrom
chore/sync-template-configs

Conversation

@Chris-Wolfgang

Copy link
Copy Markdown
Owner

Summary

Sync with repo-template — adds missing files:
.gitattributes .globalconfig BannedSymbols.txt SECURITY.md .gitleaks.toml Directory.Build.props build-pr.ps1 setup.ps1 Setup-GitHubPages.ps1 Setup-Labels.ps1 codeql.yaml build-all-versions.yaml version-picker

🤖 Generated with Claude Code

Added: .gitattributes .globalconfig BannedSymbols.txt SECURITY.md .gitleaks.toml Directory.Build.props build-pr.ps1 setup.ps1 Setup-GitHubPages.ps1 Setup-Labels.ps1 codeql.yaml build-all-versions.yaml version-picker

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 16, 2026 02:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR syncs additional configuration, security, CI workflow, and helper-script files from the upstream repo-template so downstream repos have the same baseline tooling and automation.

Changes:

  • Add repo setup / maintenance PowerShell scripts (initial repo configuration, PR checks, GitHub Pages + labels setup).
  • Introduce security and quality tooling configuration (gitleaks config, CodeQL workflow, analyzers/banned APIs via Directory.Build.props + BannedSymbols.txt).
  • Add DocFX versioned-docs deployment workflow support (build-all-versions workflow + shared version-picker HTML template).

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
scripts/setup.ps1 Interactive “configure-from-template” script that replaces placeholders, sets license, optionally creates a solution, and can create a PR with the results.
scripts/build-pr.ps1 Local runner intended to mirror PR CI checks (build/test/coverage/security/secrets scan).
scripts/Setup-Labels.ps1 Creates standard GitHub labels via gh.
scripts/Setup-GitHubPages.ps1 Automates GitHub Pages + DocFX configuration and gh-pages branch setup via gh/git.
SECURITY.md Adds a security policy and vulnerability reporting instructions.
Directory.Build.props Enables analyzers and adds analyzer package references + banned API additional file wiring.
BannedSymbols.txt Defines banned APIs (async-first, insecure/obsolete APIs) for BannedApiAnalyzers.
.globalconfig Global analyzer configuration (Roslynator settings).
.gitleaks.toml Repository gitleaks allowlist configuration.
.github/workflows/codeql.yaml Adds CodeQL scanning workflow with a “skip if no C#” guard.
.github/workflows/build-all-versions.yaml Adds workflow to build and deploy DocFX docs for all tags + “latest”.
.github/version-picker-template.html Shared HTML template used to generate the docs version picker index.
.gitattributes Adds line-ending and binary-file attributes, including an override for *.ps1.

Comment thread scripts/setup.ps1 Outdated
Comment thread scripts/Setup-GitHubPages.ps1
Comment thread scripts/build-pr.ps1 Outdated
Comment thread scripts/build-pr.ps1 Outdated
Comment thread .gitattributes
- setup.ps1: Allow dotfiles at repo root in .slnx generation (fixes
  .editorconfig, .gitignore, .globalconfig being excluded)
- Setup-GitHubPages.ps1: Remove hardcoded repo default, auto-detect
  via gh repo view
- build-pr.ps1: Install gitleaks to ~/.local/bin instead of
  /usr/local/bin (avoids sudo requirement)
- build-pr.ps1: Fail when no test projects found (matches CI behavior)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Chris-Wolfgang Chris-Wolfgang merged commit 9a10ff0 into main Apr 17, 2026
6 of 7 checks passed
@Chris-Wolfgang Chris-Wolfgang deleted the chore/sync-template-configs branch April 25, 2026 19:48
Chris-Wolfgang added a commit that referenced this pull request Apr 25, 2026
Removes script changes from this PR. The four script files contained
post-setup customizations (resolved repo name, bug fixes from PR #19's
review feedback) that shouldn't be reverted by syncing from
repo-template:

- Setup-BranchRuleset.ps1: keep resolved Chris-Wolfgang/In-memory-Logger
- Setup-GitHubPages.ps1: keep resolved repo name and auto-detect block
- build-pr.ps1: keep gitleaks ~/.local/bin install (no sudo) and
  fail-on-no-test-projects behavior
- setup.ps1: keep dotfiles-at-repo-root fix for .slnx generation

This PR now only syncs the truly template-tracked files: .editorconfig
and the three workflow yamls.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Chris-Wolfgang added a commit that referenced this pull request Apr 25, 2026
Removes script changes from this PR. The four script files contained
post-setup customizations (resolved repo name, bug fixes from PR #19's
review feedback) that shouldn't be reverted by syncing from
repo-template:

- Setup-BranchRuleset.ps1: keep resolved Chris-Wolfgang/In-memory-Logger
- Setup-GitHubPages.ps1: keep resolved repo name and auto-detect block
- build-pr.ps1: keep gitleaks ~/.local/bin install (no sudo) and
  fail-on-no-test-projects behavior
- setup.ps1: keep dotfiles-at-repo-root fix for .slnx generation

This PR now only syncs the truly template-tracked files: .editorconfig
and the three workflow yamls.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

2 participants