Skip to content

Remove the NCode Review v1.7.0 cooldown exception #37

Done

Description

@polewskm

Once 2026-11-30T21:24Z has passed, delete the two-line ADR-0009 exception comment from the header of .github/workflows/code-review.yml, keeping the v1.7.0 pin, since ADR-0009 says the exception goes once the version ages.

Found while planning #35; it landed in #36.

Activity

  1. added
    follow-up
    on Nov 29, 2026
  2. polewskm commented on Nov 30, 2026

    @polewskm
    ContributorAuthor

    Plan snapshot. The working copy is PLAN.md in the plan's checkout; this comment is not updated as steps run.

    Plan: Remove the NCode Review v1.7.0 cooldown exception (2 steps)

    Plan: Remove the NCode Review v1.7.0 cooldown exception

    Issue: #37

    Goal

    .github/workflows/code-review.yml pins NCode Review (NCodeGroup/code-review) at v1.7.0 under a commented exception to
    project-template ADR-0009's three-day cooldown, because v1.7.0 was released on 2026-11-27 at 21:24 UTC. ADR-0009 says
    such an exception is removed once the version ages. This plan deletes the two-line exception comment from the
    workflow's header, keeps the v1.7.0 pin as it is, and records the change in the changelog.

    Context for the executor

    • Build: dotnet build
    • Test: dotnet test
    • Conventions: comments in project-owned files wrap at 120 columns. This plan only deletes comment lines and adds a
      changelog entry whose lines are given in full, so no rewrapping is needed. Never edit .template/* or
      build/ProjectTemplate.props.
    • Gotchas: the two lines to delete are the only ones in the repository that mention 21:24 or commented exception
      outside docs/decisions/. Leave the # line right below them: it separates the header's paragraphs. Leave both
      uses: NCodeGroup/code-review@c88c378ad166b57027bf504526e09585e727c33c # v1.7.0 lines (the review job and the
      outcomes job) exactly as they are. The files use CRLF or LF as they already do; keep each file's line endings.

    Decisions

    • Done now, before 2026-11-30T21:24Z: the issue asks to wait for that time, but the maintainer (Marcin) allows
      exceptions to any cooldown timer for this run, so the comment goes now instead of waiting the remaining hour.
    • Keep the v1.7.0 pin and its SHA (c88c378ad166b57027bf504526e09585e727c33c): the issue keeps the pin, and
      review-forks needs v1.7.0.
    • Delete exactly the two comment lines, as the earlier plan step df789b0 ("Drop the expired NCode Review pin exception
      from code-review.yml") did for v1.5.0's exception, and change no other text in the header.
    • .github/workflows/code-review.yml came from the project template (commit 00431ce, "Take the template's
      code-review.yml with ADR-0009's exception for v1.7.0"); the maintainer authorized editing it by naming Remove the NCode Review v1.7.0 cooldown exception #37. A later
      template update takes the template's own version of the file.
    • No Release: line: the change touches only a CI workflow and the changelog, which no package ships (ADR-0032 in
      docs/decisions/project-template/), so the entry goes under ## [Unreleased].
    • The changelog entry goes under the existing ### Changed heading of ## [Unreleased], after its last entry, and
      links Remove the NCode Review v1.7.0 cooldown exception #37 and ADR-0009.

    Out of scope

    • Any other change to .github/workflows/code-review.yml, such as the pin, the SHA, the review-forks text, the jobs
      or rewrapping other comments.
    • Changes to ADR-0009, docs/decisions/1017-*.md or any other decision record.
    • Changes to .template/*, build/ProjectTemplate.props or .claude/settings.json.
    • Any other changelog section or entry.

    Steps

    [ ] 1. Delete the v1.7.0 cooldown exception comment

    • Files: .github/workflows/code-review.yml (edit)
    • Change: delete exactly these two consecutive lines (lines 32 and 33) from the header comment, and nothing else:
      # v1.7.0 was released on 2026-11-27 at 21:24 UTC, under the three days ADR-0009 waits: it is pinned by that record's
      # commented exception, because review-forks needs it, and this sentence goes once 2026-11-30 21:24 UTC has passed.
      
      Afterwards the line # 0041-ncode-review-reviews-and-approves-dependabots-pull-requests.md say why. is directly
      followed by the line #, then # review-forks: true (v1.7.0 on) reviews a pull request from a fork too: .... The
      file goes from 143 lines to 141.
    • Pattern: commit df789b0, which deleted v1.5.0's exception comment from the same header the same way.
    • Done when: $l = @(Get-Content -LiteralPath .github/workflows/code-review.yml); if ($l.Count -eq 141 -and -not ($l -match 'v1\.7\.0 was released|commented exception|2026-11-30 21:24') -and @($l -match '^\s+uses: NCodeGroup/code-review@c88c378ad166b57027bf504526e09585e727c33c # v1\.7\.0$').Count -eq 2 -and $l[30] -match 'say why\.$' -and $l[31] -eq '#') { exit 0 } else { exit 1 }

    [ ] 2. Write the changelog entry

    • Files: CHANGELOG.md (edit)
    • Change: in ## [Unreleased], under its existing ### Changed heading, add this entry after the last entry there
      (the one ending ...project-template/issues/678)).), before the blank line and ## [1.1.0] - 2026-11-30. Write no
      new heading and change no other line:
      - `.github/workflows/code-review.yml` no longer carries ADR-0009's cooldown exception comment for NCode Review
        v1.7.0, which stays pinned ([#37](https://github.com/NCodeGroup/Randomness/issues/37),
        [ADR-0009](docs/decisions/project-template/0009-new-dependency-versions-wait-a-cooldown.md)).
      
    • Pattern: the existing ### Changed entries under ## [Unreleased] in CHANGELOG.md.
    • Done when: $c = Get-Content -LiteralPath CHANGELOG.md -Raw; $u = ($c -split '(?m)^## \[1\.1\.0\]')[0]; if ($u -match 'cooldown exception comment for NCode Review' -and $u -match '\[#37\]\(https://github\.com/NCodeGroup/Randomness/issues/37\)' -and $u -match '\[ADR-0009\]\(docs/decisions/project-template/0009-new-dependency-versions-wait-a-cooldown\.md\)' -and [regex]::Matches($u, '(?m)^### Changed\r?$').Count -eq 1) { exit 0 } else { exit 1 }

    Review checklist

    • The diff of .github/workflows/code-review.yml deletes exactly the two exception lines; both uses: pins still name
      c88c378ad166b57027bf504526e09585e727c33c # v1.7.0.
    • The header still reads as separate paragraphs: ... say why., then #, then the review-forks paragraph.
    • ## [Unreleased] in CHANGELOG.md has one ### Changed heading, with the new entry last, and its ADR-0009 link
      resolves.
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

    follow-up

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions