Skip to content

ci(release): link the project review from each release #4741

Open

Description

@dan-petty

Problem or Motivation

The owner asked for links to the project review from each release. The owner decided on 2026-11-11 that each release links to the weekly review that holds it, and that store links can be in public GitHub text (the store host stays behind Access).

  • A release asset downloads as an attachment, and GitHub Pages needs a commit to main.
  • release_feed reads issue numbers from release bodies (_PULL_LINK and _CLOSING in release_feed.py). A new line must not add a number.

Proposed Solution & Architectural Design

  • Add a step in .github/workflows/release.yml after release-please, when release_created is true.
  • The step uses gh release edit in the job that has contents: write. It adds one line, marked <!-- devops-project-review -->, with the link to the review index at the ISO week of the release time.
  • The base URL comes from a repository variable that the owner sets, so no host goes into git.
  • The line has no ([#N]( form and no closes #N form.
  • Add a test that _PULL_LINK and _CLOSING find no number in the line.

Target Subsystem

CI/CD (.github/workflows/release.yml), with a test of release_feed.

Existing Tool Considered

release-please (in use) makes the release. The GitHub CLI in the workflow (gh release edit) edits the body. No new tool. Cost (estimate): one workflow step and one test, about 0.33 USD on the DeepSeek implement path and 1 day elapsed.

Acceptance Criteria

  • An edited release body has exactly 1 marked line.
  • A rerun does not add a second line.
  • release_feed gives the same issue numbers before and after the edit (test).

Dependencies

Source: #4679

Alternatives check of 2026-11-14: not-applicable.
Class: ci, no search.
Tool: none found.

Proposed design

Problem statement

Each GitHub release must link to the weekly project review that holds it. The owner decided on 2026-11-11 that each release links to its weekly review, and that review links can be in public GitHub text. The release body is the link target, because a release asset downloads as an attachment and GitHub Pages needs a commit to main. The body also feeds release_feed, which reads issue numbers from it, so the new line must add no number.

Acceptance criteria

Requirement: release-review-line

The release-review module SHALL render one line that starts with &lt;!-- devops-project-review --> and holds a Markdown link to <base>/<ISO year>-W<ISO week>/.

Scenario: The module renders the line for a release.

  • WHEN The test renders the line with the base https://reviews.example.test and the release time 2026-11-16T10:00:00Z.
  • THEN The line starts with &lt;!-- devops-project-review --> and holds [Project review for 2026-W47](https://reviews.example.test/2026-W47/).

Requirement: release-review-no-issue-number

The rendered line MUST hold no text that _PULL_LINK or _CLOSING of src/devops_cli/roadmap/release_feed.py matches.

Scenario: The feed patterns read a body with the line.

  • WHEN The test adds the rendered line to a body that holds the changelog link ([#123](https://example.test/pull/123)).
  • THEN pull_numbers gives (123,) and closing_numbers gives () for the body before and after the line, and neither pattern matches the line alone.

Requirement: release-review-rerun

The body updater SHALL leave exactly one marked line after it adds the line to a body that already holds a marked line.

Scenario: A rerun replaces an earlier marked line.

  • WHEN The test adds the line of week 2026-W47 to a body that holds one marked line of week 2026-W46 and other text.
  • THEN The body holds exactly one line with the marker, its URL names 2026-W47, and the other text is unchanged.

Requirement: release-review-entry-point

The module entry point SHALL read a JSON object with the keys body and publishedAt from standard input and SHALL write the new body to standard output.

Scenario: The entry point reads a release and writes its new body.

  • WHEN The test runs the entry point with PROJECT_REVIEW_URL=https://reviews.example.test and the JSON object of a release body on its input.
  • THEN The entry point exits 0 and writes the body with one added marked line to its output.

Requirement: release-review-empty-base

The module entry point MUST exit with a non-zero code and MUST write no body when PROJECT_REVIEW_URL is empty.

Scenario: The owner has not set the variable.

  • WHEN The test runs the entry point with an empty PROJECT_REVIEW_URL and the JSON object of a release body on its input.
  • THEN The entry point returns a non-zero code and writes nothing to its output.

Requirement: release-review-workflow-placement

The release workflow MUST run the review-link step in the assets job after the release-please job, with contents: write and the condition needs.release-please.outputs.release_created == 'true'.

Scenario: The release workflow passes its linters.

  • WHEN The check runs uv run devops ci --check --only actionlint,zizmor.
  • THEN actionlint and zizmor exit 0 and report no finding for .github/workflows/release.yml.

Requirement: release-review-workflow-command

The step MUST set GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}, read PROJECT_REVIEW_URL from vars.PROJECT_REVIEW_URL, start its run script with set -euo pipefail, and use gh release view, uv run python -m devops_cli.roadmap.release_review and gh release edit --notes-file.

Scenario: The release workflow passes its linters.

  • WHEN The check runs uv run devops ci --check --only actionlint,zizmor.
  • THEN actionlint and zizmor exit 0 and report no finding for .github/workflows/release.yml.

Requirement: Pending a person after the merge

The owner MUST set the repository variable PROJECT_REVIEW_URL to the review base URL before the first release after the merge.

Scenario: The owner sets the variable.

  • WHEN The owner sets PROJECT_REVIEW_URL in the repository settings.
  • THEN The next release run writes one marked review link to its body.

Existing Tool Considered

The alternatives check of 2026-11-14 in the issue body gives not-applicable: class ci, no search, and no tool named. release-please is in use at .github/workflows/release.yml; it makes each release but adds no per-release link line from an ISO week. The GitHub CLI gh is in use in the assets job; it edits a release body but computes no ISO week and renders no marked line. The change builds one small pure module and one workflow step. Written cost: about 3,000 tokens to build, about 1,000 tokens a year to keep and fix, and about 1 day elapsed. The DeepSeek implement path costs about 0.33 USD.

Key questions

  • Where does each release hold the link to the project review?: In the release body, on one marked line that links the ISO week of the release. The owner decided this on 2026-11-11. A release asset downloads as an attachment, and GitHub Pages needs a commit to main. (best practice) [sources: .github/workflows/release.yml, src/devops_cli/roadmap/release_feed.py]
    • Chosen: Marked line in the release body. The owner decided this place. A reader follows the body as a link, and the release feed already reads the body.
    • Rejected: File in the release assets. A release asset downloads as an attachment, so a reader cannot follow it as a link.
    • Rejected: Page on GitHub Pages. GitHub Pages needs a commit to main, and a release writes no commit.
  • Which job of the release workflow holds the step?: The assets job. Its condition is needs.release-please.outputs.release_created == 'true', and it holds permissions: contents: write and the release tag. (best practice) [sources: .github/workflows/release.yml]
    • Chosen: The assets job. It holds the write permission and the release tag, and it runs only for a new release.
    • Rejected: The release-please job. It sets permissions: {} and uses the App token, so a step there needs a new permission.
    • Rejected: A new job. It adds a runner start and a second condition for one gh call.
  • What path does the review index of one ISO week have under PROJECT_REVIEW_URL?: /<ISO year>-W<ISO week>/, for example https://reviews.example.test/2026-W47/. The project already uses YYYY-Www as the review window id and as the review folder name. The base URL holds the whole prefix, so the step appends only the week id. (best practice) [sources: src/devops_cli/roadmap/project_review/window.py]
    • Chosen: /<ISO year>-W<ISO week>/. It is the review window id that the project already computes and uses as the folder of a review.
    • Rejected: /reviews/<ISO year>-W<ISO week>/. It adds a segment that this issue and feat(roadmap): publish the project review and link it on GitHub #4733 do not name, so the owner would set two values.
    • Rejected: /latest/. It does not name the week of the release, so the link moves when the next review publishes.
  • How does the step compute the ISO week of the release?: In the module, from publishedAt with datetime.isocalendar() formatted as {year}-W{week:02d}. The assets job already installs uv and Python 3.14. (best practice) [sources: src/devops_cli/roadmap/project_review/window.py, .github/workflows/release.yml]
    • Chosen: Python datetime.isocalendar() in the module. It is the same week conversion that the project uses for review ids, and the offline test checks the code the workflow runs.
    • Rejected: GNU date -u +%G-W%V in the step. It is a second implementation that the offline test cannot check, and the module must render the line anyway.
    • Rejected: A new devops command. It adds a registered command and its generated docs for one line.
  • How does a rerun keep exactly one marked line?: The module drops each line that holds the marker and appends the new line. The step reads the body and writes it back with gh release edit --notes-file, so a rerun replaces the earlier line. (best practice) [sources: src/devops_cli/roadmap/release_feed.py, .github/workflows/release.yml]
    • Chosen: Remove the marked lines, then append. A rerun removes an earlier marked line, a new base URL replaces the old link, and the body holds one line.
    • Rejected: Append only when the marker is absent. A rerun keeps an earlier marked line, and a new base URL does not replace the old link.
  • What happens when the owner has not set PROJECT_REVIEW_URL?: The step fails closed: the module exits non-zero and writes no body, so no release gets a broken link. The change merges with no value. The owner sets the variable before the first release after the merge, and a person re-runs the failed assets job of that run. (best practice) [sources: .github/workflows/release.yml]
    • Chosen: Fail closed. A release never gets a broken link, and the failed job shows that the owner must set the variable. The code needs no value to merge.
    • Rejected: Write a line with an empty base. It puts a broken link in the release body.
    • Rejected: Skip the step silently. The release gets no link, and no signal shows the missing setting.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#4733

Activity

  1. added
    source/agent
    type/infra
    on Nov 11, 2026
  2. added
    scope/release
    status/new
    value/medium
    effort/low
    on Nov 11, 2026
  3. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/infra. The ci prefix of the title gives the type.
    • Scope: scope/release. The (release) scope of the title gives the scope.
    • Priority: P2-Medium. The owner requested it and it is planned, but it depends on #4733 and is not blocking other work.
    • Value: Medium. It adds a discoverability link from each release to the project review, which is useful but not core functionality.
    • Effort: Low. The body states one workflow step and one test, estimated at about 1 day elapsed.
    • Related: feat(roadmap): comment releases from GitHub release webhooks #4416, which asks for a different change. Both items act on releases in the roadmap area, but 4416 posts comments on issues while this candidate edits the release body to add a link.
  4. added
    priority/p2-medium
    on Nov 11, 2026
  5. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor

    Scope note from tracker #5151 (2026-11-12).

    Name the repository variable of the review base URL PROJECT_REVIEW_URL. #4733 and the docs site of #5152 read the same variable, so the owner sets one value. The docs site also shows the release notes from CHANGELOG.md (#5152). release-please writes that file, so the release body line of this item does not show there.

  6. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Alternatives check: not-applicable

    Class: ci. The check makes no search and no model call for an item of this class.

    Tool: none found

    Checked on 2026-11-14. A person decides what this means for the item. The check changes no label and closes no issue.

  7. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    Contributor

    Owner question: Who sets PROJECT_REVIEW_URL, and when? (a person decides)

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  8. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at 6786f1a while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.

  9. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.

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

    effort/lowpriority/p2-mediumscope/releasesource/agentstatus/newtype/infravalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions