Skip to content

docs: add Releasing section to AGENTS.md#367

Open
fcostaoliveira wants to merge 1 commit intoredis:masterfrom
filipecosta90:docs/agents-md-releasing-section
Open

docs: add Releasing section to AGENTS.md#367
fcostaoliveira wants to merge 1 commit intoredis:masterfrom
filipecosta90:docs/agents-md-releasing-section

Conversation

@fcostaoliveira
Copy link
Copy Markdown
Collaborator

@fcostaoliveira fcostaoliveira commented May 5, 2026

Summary

Adds a Releasing section to AGENTS.md capturing the conventions and process gotchas observed while shipping the 2.3.1 patch release. Pure documentation — no code change.

The section covers:

  • Release-note style — pins the curated ## Bug Fixes / ## Packaging & Distribution / etc. format we've used since 2.2.1, with bold lead phrases and PR numbers in parens. Future agents (or a tired maintainer reaching for --generate-notes) had no documented reference for this style.
  • Patch-release flow — cherry-pick discovery (git log master ^<release-branch>), branching off the release branch, single combined PR shape, post-merge tag-and-publish flow.
  • CI-trigger gap on release branches — every workflow's pull_request: branches: filter historically restricted to [master, main], so a PR targeting a release branch ran zero checks. Surfaced during the 2.3.1 release; documented so the next release doesn't rediscover it the hard way.
  • utils/prepare_release.sh gotchas — most notably the stale version.h problem: the Makefile rule has no dependencies, so once version.h exists make won't re-run version.sh and the man page bakes a stale SHA. Also flags the missing branch / version-string sanity checks, missing tag creation, and the dirty-only untracked-file guard.
  • Release-note generationgh release create --generate-notes --draft is a fine starting point but the body must be rewritten in the curated style before publishing.

Test plan

  • Markdown renders correctly when previewed.
  • No source code changes; CI-relevant workflows are unaffected.

🤖 Generated with Claude Code


Note

Low Risk
Low risk documentation-only change with no impact on runtime behavior, build artifacts, or CI configuration.

Overview
Adds a new Releasing section to AGENTS.md that documents the curated GitHub release-note format, the patch-release cherry-pick workflow for release branches, and common utils/prepare_release.sh pitfalls (e.g., stale version.h, missing tag creation, and CI branch filter gaps).

Also notes a recommended workflow for starting from gh release create --generate-notes --draft and rewriting into the project’s preferred style before publishing.

Reviewed by Cursor Bugbot for commit cff1bba. Bugbot is set up for automated code reviews on this repo. Configure here.

Captures conventions and process gotchas observed while preparing the
2.3.1 patch release:

- The curated release-note style used since 2.2.1 (## Bug Fixes /
  ## Packaging & Distribution / etc., bold lead phrases, PR numbers in
  parens), so future agents don't paste the auto-generated GitHub style
  that was used up to 2.2.0.
- The patch-release flow (cherry-pick discovery, branching off the
  release branch, single combined PR for a patch).
- The CI-trigger gap on release branches — workflows historically
  restricted pull_request to [master, main] only, so PRs targeting a
  release branch ran zero checks.
- utils/prepare_release.sh gotchas: stale version.h not regenerated by
  make (the rule has no dependencies, so the man page bakes an old git
  SHA), no branch / version-string sanity checks, no tag creation, the
  dirty-only untracked-file guard.
- Note that release notes should be drafted from `--generate-notes` then
  rewritten in the curated style before publishing.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@fcostaoliveira fcostaoliveira requested a review from paulorsousa May 5, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant