Skip to content

docs(repo): write down how releases pick their version - #89

Merged
lxup merged 1 commit into
mainfrom
ci/release-please-patch-by-default
Oct 13, 2026
Merged

lxup merged 1 commit into
mainfrom
ci/release-please-patch-by-default

Conversation

@lxup

@lxup lxup commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

feat(repo): on a translation PR took the mobile app from 1.7.0 to 1.8.0 (#88), and nothing in the repository said that would happen. My first pass at this changed the config to make every release a patch bump — dropped, because the config turns out to be fine: the commit type is the release decision, and that was the part nobody had written down.

So this is documentation only, no behaviour change.

What CONTRIBUTING.md now says

Title Bump
fix:, perf:, revert: patch — 1.8.0 → 1.8.1
feat: minor — 1.8.0 → 1.9.0
feat!:, or a BREAKING CHANGE: footer major — 1.8.0 → 2.0.0
chore:, ci:, docs:, refactor:, ... nothing is released

Plus: only commits that touch apps/mobile/ count towards the version at all (Release Please splits the history per package path, so a change confined to web or to a library releases nothing), and Release-As: forces an exact version.

Two traps, written down because both cost time to find

  • bump-minor-pre-major and bump-patch-for-minor-pre-major do nothing here. They sit in the config and read like they make feat a patch bump. Both are scoped to version < 1.0.0 — straight from release-please's schema (Feature changes only bump semver patch if version < 1.0.0) — so they have been inert since mobile reached 1.0.0. Left in place for a package that would start at 0.x.
  • A ! has to reach the squash subject. Squashing uses the pull request title when the branch has several commits, but the single commit's own subject when it has exactly one. On a one-commit PR the ! has to be in the commit too, or fixed in the merge dialog.

And Release-As: goes in the squash commit, not the pull request description: this repository squashes with the branch's commit messages (squash_merge_commit_message: COMMIT_MESSAGES), so the description is dropped.

@lxup
lxup force-pushed the ci/release-please-patch-by-default branch from 80546bb to f9dd41c Compare October 13, 2026 08:24
A `feat(repo):` title on a translation PR took the mobile app from 1.7.0 to
1.8.0, and nothing in the repository said that would happen. The config is
fine -- the commit type is the release decision, and that was the part nobody
had written down.

So this documents the behaviour instead of changing it: which type bumps what,
that only commits touching `apps/mobile/` count at all (Release Please splits
the history per package path), and `Release-As:` for an exact version.

Two traps are in there because both cost time to find. `bump-minor-pre-major`
and `bump-patch-for-minor-pre-major` sit in the config and read like they make
`feat` a patch bump; both are scoped to `version < 1.0.0` in release-please's
schema, so they have been inert since mobile reached 1.0.0. And a `!` has to
reach the squash subject, which is the pull request title only when the branch
has more than one commit -- otherwise GitHub uses the single commit's own
subject.
@lxup lxup changed the title ci(repo): make every release a patch bump docs(repo): write down how releases pick their version Oct 13, 2026
@lxup
lxup force-pushed the ci/release-please-patch-by-default branch from f9dd41c to 7071d27 Compare October 13, 2026 08:31
@lxup
lxup merged commit 06b5556 into main Oct 13, 2026
4 checks passed
@lxup
lxup deleted the ci/release-please-patch-by-default branch October 13, 2026 08:43
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