Skip to content

docs: correct how release-please decides a version bump - #58

Merged
atdr merged 1 commit into
mainfrom
docs/release-please-bump-rules
Sep 11, 2026
Merged

atdr merged 1 commit into
mainfrom
docs/release-please-bump-rules

Conversation

@atdr

@atdr atdr commented Sep 11, 2026

Copy link
Copy Markdown
Owner

What changed

The release-please gotcha in AGENTS.md said the tool "counts only feat and breaking changes toward a bump". It doesn't. A second bullet now records that docs: cuts a patch release here on purpose, and names the commit types that stay quiet.

Why

The claim was wrong in a way that made the current behaviour look like a misconfiguration. Any visible type that isn't feat or breaking bumps a patch, and release-type: python replaces release-please's default changelog sections with google-cloud-python's, which make docs and deps visible where the shared default hides docs. That is why PR #53 exists: one docs(contrail-gh): commit opened a 0.5.2 release PR while three ci: commits and a test(ci): commit contributed nothing. Verified against release-please's source, src/strategies/python.ts:31 and the empty-notes skip in src/strategies/base.ts:331.

The behaviour is left as it is. Hiding docs would also drop documentation from CHANGELOG.md, which isn't worth it here.

Checks

  • ./venv/bin/ruff check . and ./venv/bin/ruff format . pass
  • ./venv/bin/pytest -q passes
  • Docs updated in this PR, if this changes a config option, an importer, or an emissions provider
  • Tests added or updated, if this changes behaviour
  • Skimmed gh issue list for open issues this change touches

No config option, importer, emissions provider or behaviour changed, so the middle two are inapplicable. None of the six open issues touch this.

Test plan

  • ./venv/bin/pytest -q: 326 passed
  • ./venv/bin/ruff check .: clean; ruff format --check .: 54 files already formatted
  • ./venv/bin/pre-commit run --files AGENTS.md: markdownlint-cli2 and mdformat both pass, so the wrapping is what mdformat would write
  • Prose claims checked against release-please main, not from memory

🤖 Generated with Claude Code

https://claude.ai/code/session_011mJ5NaA5DdPxqa1Mb4UJhT

The gotcha claimed release-please "counts only `feat` and breaking changes
toward a bump". Any visible type that is not `feat` or breaking bumps a
patch, and `release-type: python` makes `docs` visible where the shared
default hides it, which is why docs-only commits open a release PR here.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011mJ5NaA5DdPxqa1Mb4UJhT
@atdr
atdr merged commit b2893bf into main Sep 11, 2026
12 checks passed
@atdr
atdr deleted the docs/release-please-bump-rules branch September 11, 2026 17:10
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