flagon-useralejs icon indicating copy to clipboard operation
flagon-useralejs copied to clipboard

CI(semver): Add semantic versioning

Open EandrewJones opened this issue 1 year ago • 4 comments

Problem

We currently use semantic versioning but rely on developers to manually update versionings and change logs. This creates lots of room for error.

Solution

Enforce proper semantic versioning and change log updates via commitizen.

EandrewJones avatar May 07 '24 15:05 EandrewJones

Needs more research. We do not necessarily want to manage version updates at the commit level. Is there a way to do this via commitizen or do we need an alternative?

EandrewJones avatar May 09 '24 17:05 EandrewJones

Details

Commitizen is only part of the story here. We also need a means to enforce semantic versioning and implement CI tooling around that. Commitizen is a per-requisite as most automated semver tools expect commit messages to follow the conventional format and then parse them to figure out version bumps.

Then you need a tool like semantic release to benefit from automations around standardized commit messages.

Conversation

@Jyyjy It looks like you can bundle multiple commits into a single bump, it just all depends on how frequently you run your semantic release script and on which branch (i.e. CI challenge). See: https://blog.devgenius.io/automatic-semantic-versioning-and-commit-messages-semantic-release-and-commitizen-72e4eca5f194

We could break this up into multiple issues as conventional commits are a prereq for any automated solution.

EandrewJones avatar Jul 08 '24 16:07 EandrewJones

Sorry to interrupt @EandrewJones but i think you should close this issue my recent PR has solved this issue.

Suvendu-UI avatar Jul 15 '24 18:07 Suvendu-UI

No worries.

If you go look at the PR, you'll notice I created a different issue and edited your PR to link to that. Your PR implements commitizen which provides us with machine-readable commit messages. These are prerequisites to have automated semantic versioning, but commitizen in and of itself does not add provide.

This is a separate issue we still need to solve.

Best

Evan Jones Website: www.ea-jones.com

On Mon, Jul 15, 2024 at 2:07 PM Suvendu-UI @.***> wrote:

Sorry to interrupt @EandrewJones https://github.com/EandrewJones but i think you should close this issue my recent PR has solved this issue.

— Reply to this email directly, view it on GitHub https://github.com/apache/flagon-useralejs/issues/447#issuecomment-2229092580, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ2T6AIQXQPMOJLHIZYB3F3ZMQFVZAVCNFSM6AAAAABHLHB7P2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRZGA4TENJYGA . You are receiving this because you were mentioned.Message ID: @.***>

EandrewJones avatar Jul 15 '24 21:07 EandrewJones