Skip to content

Update to project-template v0.153.1 #263

Description

@github-actions

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.md Landing section says pre-release: untracked and that has no version tag of 1.0.0 or later, .template/Update-Project.ps1 and Adopt-Project.ps1 no longer ask a .NET library to set PackageValidationBaselineVersion: 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 no CompatibilitySuppressions.xml (#669, ADR-0157).

Fixed

  • .template/check-markdown.mjs, which CI's Markdown checks job runs, leaves out the Markdown files under a vendor/ folder when it lists the files itself, as .template/Test-FileHeaders.ps1 does, 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-issue makes, in Claude Code, Copilot Chat and Copilot CLI, point the scratch clone's origin/HEAD where the project's own points before the update runs, so a trial from a plan worktree no longer records the worktree's branch as default_branch and 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 a 0.y.z release for its package validation baseline, as Update-Project.ps1 does, and is done for a pre-release project, which sets none before its first stable release (#669).

Activity

  1. added
    template-update
    on Nov 30, 2026
  2. polewskm commented on Nov 30, 2026

    @polewskm
    Contributor

    Plan snapshot. The working copy is PLAN.md in 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.md Landing section and default-branch workflows are its manifest, so
    tools/Set-RepositoryBaseline.ps1 -Repo <owner>/<name> in project-template derives the required checks from them and
    needs no -RequireChecks; Update-Project.ps1 now ends an update with that command. It also takes in v0.153.1 to
    v0.153.3 (Markdown checks skip vendor/, dot-named repositories, the trial's origin/HEAD), which supersedes #263's
    v0.153.1.

    Context for the executor

    • Prelude: ./.template/Use-Node.ps1
    • Build: npm run typecheck
    • Test: npm test
    • Conventions: Markdown prose in docs/setup.md and CHANGELOG.md stays one line per bullet, as the lines around it
      are. Never edit template-owned files (.template/*, .github/prompts/*, .claude/commands/*, workflows) beyond
      what the update step writes.
    • Gotchas:
      • npm ci already ran in this worktree; the main checkout already has its own node_modules, so nothing was
        installed there.
      • A script or command never passes a relative path to a .NET method, such as [IO.File]::ReadAllText,
        [IO.File]::WriteAllText or [IO.Directory]::GetFiles: .NET resolves it against the process's folder, which
        Set-Location doesn't move and which in a Copilot session is the main checkout, not the plan's worktree. Use
        Get-Content -LiteralPath, Set-Content -LiteralPath or Get-ChildItem, or make the path absolute first with
        Join-Path (Get-Location) <path>.
      • The update prints, at its end, the command tools/Set-RepositoryBaseline.ps1 -Repo NCodeGroup/code-review (or
        similar) for project-template's clone. Never run it: quote the printed line in your step report only.

    Decisions

    • Target v0.154.0, the newest tag; it supersedes Update to project-template v0.153.1 #263, which names v0.153.1, so the pull request closes Update to project-template v0.153.1 #263.
    • No Release: line: the update changes only template tooling, prompts, workflows, decision records and repository
      docs, none of what a release ships (action.yml, src/, prompts/, reviewers/, guidance/, runtime
      dependencies), so the changelog entry goes under ## [Unreleased] (ADR-0032, ADR-1012).
    • docs/setup.md step 2.4 drops the -RequireChecks value it told the admin to look up: under ADR-0068 the
      baseline needs only -Repo <owner>/<name>.
    • The trial kept two action pins this project moved past the template's (scorecard.yml upload-sarif v4.39.5,
      tag-release.yml setup-gitsign v1.8.3); that is the update's intended behavior, not a gap.
    • The trial found no template gap, so no template issue is filed. When a step escalates because the update differs
      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

    • Running tools/Set-RepositoryBaseline.ps1 or changing any GitHub setting.
    • Editing .template/*, build/ProjectTemplate.props or any other template-owned file by hand, including long lines.
    • Rewording past changelog entries or ADRs that mention -RequireChecks as history.

    Steps

    [ ] 1. Update from project-template v0.154.0

    • Files: .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)
    • Change: run & .\.template\Update-Project.ps1 -Ref v0.154.0 -NoCommit. The trial printed, after the handover and
      Copier's Git false-alarm lines: Template v0.153.0 -> v0.154.0: with added the ADR-0068 file
      docs/decisions/project-template/0068-a-repositorys-answers-are-its-manifest-and-the-baseline-needs-only-its-name.md
      and modified every other file above (.template/check-markdown.mjs, Get-PlanState.ps1, Test-MergeGate.ps1,
      Update-Project.ps1 under .template/); then Kept — action pins ... for scorecard.yml (upload-sarif v4.39.5 vs
      v4.39.3) and tag-release.yml (setup-gitsign v1.8.3 vs v1.8.2); then Staged for review: .... No conflict, no
      Local edits discarded, no Restored. The real run also prints the Set-RepositoryBaseline.ps1 -Repo ... command
      at 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.
    • Commit note: stage with git add -- .copier-answers.yml .template-version .template .claude/commands .github/prompts .github/skills .github/workflows/ci.yml docs/decisions/project-template; a (deleted) file is already staged, so never run git add on it (this update deletes none).
    • Done when: 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

    • Files: none (check only)
    • Change: none. Run the build, lint, file-header and Markdown checks the trial ran; any failure is an escalation.
    • Done when: ./.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:

        - Only once 2.1 to 2.3 are on the default branch, run `.\tools\Set-RepositoryBaseline.ps1 -Repo <owner>/<name> -WhatIf`, then without `-WhatIf`. It needs no other argument: it requires the checks the default branch's `.copier-answers.yml` and workflows imply, as project-template's [Run the Baseline](https://github.com/NCodeGroup/project-template/blob/main/docs/adopt.md#21-run-the-baseline) and [ADR-0068](decisions/project-template/0068-a-repositorys-answers-are-its-manifest-and-the-baseline-needs-only-its-name.md) say.
    • 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 ### Changed group, add exactly this bullet after the group's last
      bullet (the one starting - The repository follows project-template v0.153.0:), with one blank line before it, as
      the group's bullets are separated. Add no heading and no link line.

      - The repository follows project-template v0.154.0: `.template/Update-Project.ps1` ends an update with the command that brings the repository's GitHub settings up to the new version, `tools/Set-RepositoryBaseline.ps1 -Repo <owner>/<name>`, which requires the checks the default branch's `.copier-answers.yml` and workflows imply, so `docs/setup.md`'s Require the Approval step runs it with no `-RequireChecks`; CI's `Markdown checks` job leaves out Markdown files under a `vendor/` folder ([#263](https://github.com/NCodeGroup/code-review/issues/263), [project-template ADR-0068](docs/decisions/project-template/0068-a-repositorys-answers-are-its-manifest-and-the-baseline-needs-only-its-name.md)).
    • 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

    • Files: none (check only)
    • Change: none. Run the Landing section's gate.
    • Done when: ./.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

    • The update's file list matches the trial's, and git diff origin/main --stat shows no other file besides
      docs/setup.md and CHANGELOG.md.
    • The baseline command Update-Project.ps1 printed names NCodeGroup/code-review; it is reported, never run.
    • After merge: the changed /plan-template-update, /plan-issue, /ship-plan, /run-issues, /triage-issues and
      /decompose-issue commands and prompts load only in a session started after the merge.
    • After merge: Marcin runs tools/Set-RepositoryBaseline.ps1 -Repo NCodeGroup/code-review from project-template when
      he chooses; no step does.
  3. polewskm commented on Dec 1, 2026

    @polewskm
    Contributor

    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.yml header 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/Dockerfile and codeql.yml and wrap the project's own long comment in dependabot.yml, name v0.154.1 in the changelog entry, and rerun the gate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    template-update

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions