Skip to content

docs: run release commands in a worktree #756

Closed

Description

@uniqueg

The release steps in the contributing guide (docs/contributing/index.md) start with git switch --detach <sha>. If that fails, e.g. because the maintainer's checkout has uncommitted changes, the next commands still run when pasted: python scripts/citation.py check then checks the wrong commit, although the push and the tag still name the commit. The chart release steps in docs/helm-chart.md tag HEAD without naming the commit at all.

Change the package release steps to:

  • run in a new detached worktree at the release commit (git worktree add --detach), so the maintainer's checkout stays as it is;
  • chain the commands with &&, so that they stop at the first error;
  • name the commit in every push and tag;
  • remove the worktree at the end.

The chart release steps check no files, so they need no worktree: name the commit in the tag and chain the commands the same way.

Activity

  1. added
    priority: medium
    status: in progress
    type: docs
    workload: minutes
    on Nov 9, 2026
  2. added this to the v0.23.0 milestone on Nov 25, 2026
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

    priority: mediumstatus: in progresstype: docsworkload: minutes

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions