orhun / git-cliff

A highly customizable Changelog Generator that follows Conventional Commit specifications ⛰️
https://git-cliff.org
Apache License 2.0
8.42k stars 174 forks source link

Bump version in monorepo with several commits in different workspaces #648

Open julocatelli opened 2 months ago

julocatelli commented 2 months ago

Is there an existing issue for this?

Description of the bug

I found a bug when bumping the version for a specific workspace.

I have a monorepo with a frontend and a backend projects and both have their own version and their own changelog.

I committed some changes on the frontend and different changes on backend. When I try to bump the version of the backend I get the version of the frontend.

It seems take always the version of the first commit.

The rest of the changelog generation works perfectly by the way :)

Steps To Reproduce

commit a change in one project e.g. apps/front commit another change in another project e.g. apps/back

then try to run git cliff versio-prev.. --bump --include-path "apps/back/**/*" --repository "./"

The output version is the apps/front project version bump.

Expected behavior

it should return the bump version of the target project

Screenshots / Logs

No response

Software information

Additional context

No response

welcome[bot] commented 2 months ago

Thanks for opening your first issue at git-cliff! Be sure to follow the issue template! ⛰️

holmesb commented 6 days ago

--tag-pattern ?