Skip to content

Enforce conventional commits and preview the release version on PRs - #4

Merged
dlommm merged 1 commit into
mainfrom
ci/release-versioning
Oct 23, 2026
Merged

dlommm merged 1 commit into
mainfrom
ci/release-versioning

Conversation

@dlommm

@dlommm dlommm commented Oct 23, 2026

Copy link
Copy Markdown
Owner

Releases are versioned automatically from commit subjects (feat!: → major, feat: → minor, fix: → patch). This makes that reliable:

  • New PR-only commits job fails when a commit lacks a conventional prefix, because that commit would otherwise ship without a version bump.
  • The same job writes a release preview to the run summary showing the exact version merging the PR will release.
  • perf:, revert: and git Revert "…" commits now cut a patch release.
  • tests/test_next_version.py pins every bump rule (17 cases).
  • docs/ci-cd.md is updated.

Versions come from commit subjects, so an unprefixed commit would ship without
a bump. A PR-only 'commits' job rejects those and writes the version the merge
will release to the run summary. perf:, revert: and git Revert commits now cut
a patch release, and tests pin every bump rule in next-version.sh.
@dlommm
dlommm merged commit cc6d6ca into main Oct 23, 2026
8 checks passed
@dlommm
dlommm deleted the ci/release-versioning branch October 23, 2026 05:09
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