Repository navigation
Labels
template-updateA newer version of the project template is out
Description
This project is on project-template v0.153.0. The newest version is v0.153.1, one version later.
Plan the update with /plan-issue and this issue's number, which plans it as /plan-template-update v0.153.1 does, or run .\.template\Update-Project.ps1 on a branch of its own.
The template-update workflow keeps this issue current every week: it retitles it and rewrites this text when a newer version comes out, and closes it once the project is on the newest version.
Changes since v0.153.0
[0.153.1] - 2026-11-30
Changed
- In a pre-release project, one whose
AGENTS.mdLanding section sayspre-release: untrackedand that has no version tag of 1.0.0 or later,.template/Update-Project.ps1andAdopt-Project.ps1no longer ask a .NET library to setPackageValidationBaselineVersion: ADR-0157, which amends ADR-0147, says such a project sets no package validation baseline before its first stable release, so a pre-release break needs noCompatibilitySuppressions.xml(#669, ADR-0157).
Fixed
.template/check-markdown.mjs, which CI'sMarkdown checksjob runs, leaves out the Markdown files under avendor/folder when it lists the files itself, as.template/Test-FileHeaders.ps1does, so a vendored copy's links into its source repository no longer fail the job; a file named on the command line is still checked (#670)./plan-template-update's trial run, and the template-update plans/plan-issuemakes, in Claude Code, Copilot Chat and Copilot CLI, point the scratch clone'sorigin/HEADwhere the project's own points before the update runs, so a trial from a plan worktree no longer records the worktree's branch asdefault_branchand lists the same files and diffs as the update step (#668, ADR-0060).tools/Get-AdoptionChecklist.ps1's row 4.3 asks a tracked library with a0.y.zrelease for its package validation baseline, asUpdate-Project.ps1does, and is done for a pre-release project, which sets none before its first stable release (#669).
Metadata
Metadata
Assignees
Labels
template-updateA newer version of the project template is out
Activity
polewskm commentedon Nov 30, 2026
Plan snapshot. The working copy is
PLAN.mdin the plan's checkout; this comment is not updated as steps run.Plan: Update from project-template v0.154.0 (5 steps)
Plan: Update from project-template v0.154.0
Issue: #263
Goal
Bring the repository from project-template v0.153.0 to v0.154.0. The update brings ADR-0068: a repository's
.copier-answers.yml,AGENTS.mdLanding section and default-branch workflows are its manifest, sotools/Set-RepositoryBaseline.ps1 -Repo <owner>/<name>in project-template derives the required checks from them andneeds no
-RequireChecks;Update-Project.ps1now ends an update with that command. It also takes in v0.153.1 tov0.153.3 (Markdown checks skip
vendor/, dot-named repositories, the trial'sorigin/HEAD), which supersedes #263'sv0.153.1.
Context for the executor
./.template/Use-Node.ps1npm run typechecknpm testdocs/setup.mdandCHANGELOG.mdstays one line per bullet, as the lines around itare. Never edit template-owned files (
.template/*,.github/prompts/*,.claude/commands/*, workflows) beyondwhat the update step writes.
npm cialready ran in this worktree; the main checkout already has its ownnode_modules, so nothing wasinstalled there.
[IO.File]::ReadAllText,[IO.File]::WriteAllTextor[IO.Directory]::GetFiles: .NET resolves it against the process's folder, whichSet-Locationdoesn't move and which in a Copilot session is the main checkout, not the plan's worktree. UseGet-Content -LiteralPath,Set-Content -LiteralPathorGet-ChildItem, or make the path absolute first withJoin-Path (Get-Location) <path>.tools/Set-RepositoryBaseline.ps1 -Repo NCodeGroup/code-review(orsimilar) for project-template's clone. Never run it: quote the printed line in your step report only.
Decisions
Release:line: the update changes only template tooling, prompts, workflows, decision records and repositorydocs, none of what a release ships (
action.yml,src/,prompts/,reviewers/,guidance/, runtimedependencies), so the changelog entry goes under
## [Unreleased](ADR-0032, ADR-1012).docs/setup.mdstep 2.4 drops the-RequireChecksvalue it told the admin to look up: under ADR-0068 thebaseline needs only
-Repo <owner>/<name>.scorecard.ymlupload-sarif v4.39.5,tag-release.ymlsetup-gitsign v1.8.3); that is the update's intended behavior, not a gap.from the trial, the orchestrating session files the gap in NCodeGroup/project-template (searching open issues first
and commenting instead of duplicating), and the executor never calls
gh.Out of scope
tools/Set-RepositoryBaseline.ps1or changing any GitHub setting..template/*,build/ProjectTemplate.propsor any other template-owned file by hand, including long lines.-RequireChecksas history.Steps
[ ] 1. Update from project-template v0.154.0
.copier-answers.yml,.template-version,.template/,.claude/commands/decompose-issue.md,.claude/commands/plan-issue.md,.claude/commands/plan-template-update.md,.claude/commands/run-issues.md,.claude/commands/ship-plan.md,.claude/commands/triage-issues.md,.github/prompts/decompose-issue.prompt.md,.github/prompts/plan-issue.prompt.md,.github/prompts/plan-template-update.prompt.md,.github/prompts/run-issues.prompt.md,.github/prompts/ship-plan.prompt.md,.github/prompts/triage-issues.prompt.md,.github/skills/decompose-issue/SKILL.md,.github/skills/plan-issue/SKILL.md,.github/skills/plan-template-update/SKILL.md,.github/skills/run-issues/SKILL.md,.github/skills/ship-plan/SKILL.md,.github/skills/triage-issues/SKILL.md,.github/workflows/ci.yml,docs/decisions/project-template/(0068 new; 0030 and README.md modified)& .\.template\Update-Project.ps1 -Ref v0.154.0 -NoCommit. The trial printed, after the handover andCopier's Git false-alarm lines:
Template v0.153.0 -> v0.154.0:withaddedthe ADR-0068 filedocs/decisions/project-template/0068-a-repositorys-answers-are-its-manifest-and-the-baseline-needs-only-its-name.mdand
modifiedevery other file above (.template/check-markdown.mjs,Get-PlanState.ps1,Test-MergeGate.ps1,Update-Project.ps1under.template/); thenKept — action pins ...forscorecard.yml(upload-sarif v4.39.5 vsv4.39.3) and
tag-release.yml(setup-gitsign v1.8.3 vs v1.8.2); thenStaged for review: .... No conflict, noLocal edits discarded, noRestored. The real run also prints theSet-RepositoryBaseline.ps1 -Repo ...commandat its end (the trial's folder origin had none): quote that line in your step report. Any other difference is an
escalation: mark the step
[?]and quote it.if ((Select-String -LiteralPath .copier-answers.yml -Pattern '^_commit: v0.154.0$' -Quiet) -and -not (git diff --name-only --diff-filter=U) -and -not (git grep -lE '^(<<<<<<<|>>>>>>>) ')) { exit 0 } else { exit 1 }[ ] 2. Run the build and checks after the update
./.template/Test-FileHeaders.ps1; if (-not $? -or $LASTEXITCODE) { exit 1 }; npm run typecheck; if (-not $? -or $LASTEXITCODE) { exit 1 }; npm run lint; if (-not $? -or $LASTEXITCODE) { exit 1 }; node .template/check-markdown.mjs; if (-not $? -or $LASTEXITCODE) { exit 1 } else { exit 0 }[ ] 3. Drop -RequireChecks from docs/setup.md's Require the Approval step
Files:
docs/setup.md(edit)Change: in
### 2.4 Require the Approval, replace the whole line that starts- Only once 2.1 to 2.3 are on the default branch, run(it names-RequireChecks) with exactly this line,which keeps its two-space indent:
Done when:
if ((Select-String -LiteralPath docs/setup.md -Pattern 'RequireChecks' -Quiet) -or -not (Select-String -LiteralPath docs/setup.md -SimpleMatch 'Set-RepositoryBaseline.ps1 -Repo <owner>/<name> -WhatIf' -Quiet)) { exit 1 }; node .template/check-markdown.mjs docs/setup.md; if (-not $? -or $LASTEXITCODE) { exit 1 } else { exit 0 }[ ] 4. Write the changelog entry
Files:
CHANGELOG.md(edit)Change: under
## [Unreleased], in the existing### Changedgroup, add exactly this bullet after the group's lastbullet (the one starting
- The repository follows project-template v0.153.0:), with one blank line before it, asthe group's bullets are separated. Add no heading and no link line.
Done when:
$t = (Get-Content -LiteralPath CHANGELOG.md -Raw); $u = $t.Substring(0, $t.IndexOf('## [1.7.0]')); if (-not $u.Contains('- The repository follows project-template v0.154.0: ') -or ([regex]::Matches($u, '(?m)^### Changed\r?$').Count -ne 1)) { exit 1 }; node .template/check-markdown.mjs CHANGELOG.md; if (-not $? -or $LASTEXITCODE) { exit 1 } else { exit 0 }[ ] 5. Run the gate
./.template/Test-FileHeaders.ps1; if (-not $? -or $LASTEXITCODE) { exit 1 }; npm run typecheck; if (-not $? -or $LASTEXITCODE) { exit 1 }; npm run lint; if (-not $? -or $LASTEXITCODE) { exit 1 }; npm test; if (-not $? -or $LASTEXITCODE) { exit 1 }; ./.template/Test-Coverage.ps1; if (-not $? -or $LASTEXITCODE) { exit 1 } else { exit 0 }Review checklist
git diff origin/main --statshows no other file besidesdocs/setup.mdandCHANGELOG.md.Update-Project.ps1printed namesNCodeGroup/code-review; it is reported, never run./plan-template-update,/plan-issue,/ship-plan,/run-issues,/triage-issuesand/decompose-issuecommands and prompts load only in a session started after the merge.tools/Set-RepositoryBaseline.ps1 -Repo NCodeGroup/code-reviewfrom project-template whenhe chooses; no step does.
polewskm commentedon Dec 1, 2026
Re-plan: the update now targets project-template v0.154.1, tagged after #264 opened, in the same pull request. Steps 6-9 run the v0.154.1 update (keeping this repository's own
.github/dependabot.ymlheader where it conflicts, since it states the daily action checks and the ADR-1006 exception), take the template's 120-column comment rewraps in.devcontainer/Dockerfileandcodeql.ymland wrap the project's own long comment independabot.yml, name v0.154.1 in the changelog entry, and rerun the gate.