Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .claude/rules/releases-use-script.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ paths:
- "VERSION"
---

# Releases Must Use Script
# Release preparation

When the user asks for a "new release" (or equivalent wording), always use `.github/scripts/release.sh` from the repository root.
This repository uses Release Please. The script procedure below applies to legacy callers without a root `release-please-config.json`.

- Determine bump type (`major`, `minor`, or `patch`) from user intent.
- If bump type is unclear, ask a single clarifying question before running the script.
Expand All @@ -23,6 +23,6 @@ Release-please repositories (a `release-please-config.json` exists at the root)
- If auto-merge is refused or stays blocked, never merge the release PR directly without the user's agreement.
- The exception covers only that auto-merge. Releases made with `release.sh`, pin bumps, manual tags and other repositories keep the confirmation rule above.

Examples:
Examples for legacy script callers:
- "new release" -> ask whether `major`, `minor`, or `patch`, then run `.github/scripts/release.sh <type>`.
- "cut a patch release" -> run `.github/scripts/release.sh patch`.