Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/commands/plan-issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ Clone into a scratch folder outside the repository, `$scratch = Join-Path ([IO.P
2. A check step: `build_command` and the checks the trial ran in the clone, now in the repository.
3. One step for each project file that step 3 found, with its exact old and new text.
4. When the trial printed `README.md doesn't follow the .NET library layout yet`, one step titled `Bring README.md to the .NET library layout`, after the project-file steps. Its Change runs `./.template/Test-Readme.ps1 -Fix`, which puts the template's header block at the top of a README that has none, the `## Project` block right below a `## Project` heading that has none and the package header block at the top of each package readme that has none, then deletes the old title, description and badge lines the header block replaces, quoting each, keeps the library's own badges, such as a coverage badge, in a centred `<p align="center">` paragraph right below the header block, deletes the `## Project` links the block repeats, keeping the project's own below it, deletes each package readme's old title and the badges its block repeats, keeping the package's own badges on a line right below the block, writes a package readme the trial names as missing, with what the package is for, `## Installation` and an example, and adds or moves `## Installation`, `## Quick start`, `## Usage` and `## Project` into that order, naming for each section the README's own text it takes, so no line of the project's is lost (the template's ADR-0055 and ADR-0061). When a gap is the blank `repository` answer, the update step's `-Data` gets `repository = '<Owner/Name>'`, the project's GitHub repository. Its Done-when runs `$o = @(./.template/Test-Readme.ps1); if (-not $? -or $LASTEXITCODE -or ($o -match '^(Warning: |::warning::)')) { exit 1 } else { exit 0 }`, which also fails on a gap the check only warns about, under GitHub Actions too.
5. When the project has `changelog.d/README.md` after the trial's update and `./.template/Publish-Release.ps1 -Fold -WhatIf`, run in the trial's clone, doesn't print `Nothing to fold.`, one step titled `Fold published changelog entries into <changelog>`, before the gate. Its Change runs `./.template/Publish-Release.ps1 -Fold`, which writes each published release whose entries are still in `changelog.d/` into the changelog as its section and deletes those files (ADR-0081 in `docs/decisions/project-template/`); its Files line names the changelog and the entry files the trial's run named; its Done-when is `$o = @(./.template/Publish-Release.ps1 -Fold -WhatIf); if ($? -and ($o -join ' ') -match 'Nothing to fold\.') { exit 0 } else { exit 1 }`.
5. When the project has `changelog.d/README.md` after the trial's update and `./.template/Publish-Release.ps1 -Fold -WhatIf`, run in the trial's clone, doesn't print `Nothing to fold.`, one step titled `Fold changelog entries into <changelog>`, before the gate. Its Change runs `./.template/Publish-Release.ps1 -Fold`, which writes each published release whose entries are still in `changelog.d/` into the changelog as its section, and, under `release: none` in `AGENTS.md`'s Landing section, each entry file no release published into its `## [Unreleased]`, and deletes those files (ADR-0081 and ADR-0087 in `docs/decisions/project-template/`); its Files line names the changelog and the entry files the trial's run named; its Done-when is `$o = @(./.template/Publish-Release.ps1 -Fold -WhatIf); if ($? -and ($o -join ' ') -match 'Nothing to fold\.') { exit 0 } else { exit 1 }`.
6. The gate, last: the gate `AGENTS.md` names, or else `build_command` and then `test_command`.

When the trial adds `.github/workflows/codeql.yml`, its output says so, with the commands written for this project's own GitHub repository, which the trial's clone has as its `origin`. The plan's Review checklist then starts with a step for the person, done before the update's pull request can pass, since GitHub refuses the workflow's results while CodeQL's default setup is on and an executor never calls `gh`: list the default setup's languages with `gh api repos/<owner>/<name>/code-scanning/default-setup --jq .languages`, turn the default setup off with `gh api -X PATCH repos/<owner>/<name>/code-scanning/default-setup -f state=not-configured`, and re-run the pull request's failed Analyze jobs. No step of the plan runs either command.
Expand Down
2 changes: 1 addition & 1 deletion .claude/commands/plan-template-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Clone into a scratch folder outside the repository, `$scratch = Join-Path ([IO.P
2. A check step: `build_command` and the checks the trial ran in the clone, now in the repository.
3. One step for each project file that step 3 found, with its exact old and new text.
4. When the trial printed `README.md doesn't follow the .NET library layout yet`, one step titled `Bring README.md to the .NET library layout`, after the project-file steps. Its Change runs `./.template/Test-Readme.ps1 -Fix`, which puts the template's header block at the top of a README that has none, the `## Project` block right below a `## Project` heading that has none and the package header block at the top of each package readme that has none, then deletes the old title, description and badge lines the header block replaces, quoting each, keeps the library's own badges, such as a coverage badge, in a centred `<p align="center">` paragraph right below the header block, deletes the `## Project` links the block repeats, keeping the project's own below it, deletes each package readme's old title and the badges its block repeats, keeping the package's own badges on a line right below the block, writes a package readme the trial names as missing, with what the package is for, `## Installation` and an example, and adds or moves `## Installation`, `## Quick start`, `## Usage` and `## Project` into that order, naming for each section the README's own text it takes, so no line of the project's is lost (the template's ADR-0055 and ADR-0061). When a gap is the blank `repository` answer, the update step's `-Data` gets `repository = '<Owner/Name>'`, the project's GitHub repository. Its Done-when runs `$o = @(./.template/Test-Readme.ps1); if (-not $? -or $LASTEXITCODE -or ($o -match '^(Warning: |::warning::)')) { exit 1 } else { exit 0 }`, which also fails on a gap the check only warns about, under GitHub Actions too.
5. When the project has `changelog.d/README.md` after the trial's update and `./.template/Publish-Release.ps1 -Fold -WhatIf`, run in the trial's clone, doesn't print `Nothing to fold.`, one step titled `Fold published changelog entries into <changelog>`, before the gate. Its Change runs `./.template/Publish-Release.ps1 -Fold`, which writes each published release whose entries are still in `changelog.d/` into the changelog as its section and deletes those files (ADR-0081 in `docs/decisions/project-template/`); its Files line names the changelog and the entry files the trial's run named; its Done-when is `$o = @(./.template/Publish-Release.ps1 -Fold -WhatIf); if ($? -and ($o -join ' ') -match 'Nothing to fold\.') { exit 0 } else { exit 1 }`.
5. When the project has `changelog.d/README.md` after the trial's update and `./.template/Publish-Release.ps1 -Fold -WhatIf`, run in the trial's clone, doesn't print `Nothing to fold.`, one step titled `Fold changelog entries into <changelog>`, before the gate. Its Change runs `./.template/Publish-Release.ps1 -Fold`, which writes each published release whose entries are still in `changelog.d/` into the changelog as its section, and, under `release: none` in `AGENTS.md`'s Landing section, each entry file no release published into its `## [Unreleased]`, and deletes those files (ADR-0081 and ADR-0087 in `docs/decisions/project-template/`); its Files line names the changelog and the entry files the trial's run named; its Done-when is `$o = @(./.template/Publish-Release.ps1 -Fold -WhatIf); if ($? -and ($o -join ' ') -match 'Nothing to fold\.') { exit 0 } else { exit 1 }`.
6. The gate, last: the gate `AGENTS.md` names, or else `build_command` and then `test_command`.

When the trial adds `.github/workflows/codeql.yml`, its output says so, with the commands written for this project's own GitHub repository, which the trial's clone has as its `origin`. The plan's Review checklist then starts with a step for the person, done before the update's pull request can pass, since GitHub refuses the workflow's results while CodeQL's default setup is on and an executor never calls `gh`: list the default setup's languages with `gh api repos/<owner>/<name>/code-scanning/default-setup --jq .languages`, turn the default setup off with `gh api -X PATCH repos/<owner>/<name>/code-scanning/default-setup -f state=not-configured`, and re-run the pull request's failed Analyze jobs. No step of the plan runs either command.
Expand Down
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Written by Copier; never edit by hand. Change an answer with .template\Update-Project.ps1 -Data.
_commit: v0.165.0
_commit: v0.166.0
_src_path: https://github.com/NCodeGroup/project-template.git
author_name: NCode Group
build_command: npm run build
Expand Down
Loading