New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Be able to generate changelog for a monorepo package #300
Comments
Adding my +1 to this. Being able to bump a single package in a monorepo without being able to extract the changelog just for that package makes github releases for individual packages ~impossible (without the above workaround: thanks for that!) |
Hey, I've been trying to tackle this feature a couple of weeks ago but I'm really struggling to find the right strategy. I tried applying the same algorithm used in the Therefore we would have to manually find the closest tag of Ideally we would need to list all the tags of the package, but from my reasearch this isn't possible with libgit2 with a low complexity (aka. listing all the tags + filtering). @oknozor Any idea ? I also saw you're doing some refactor on Revspec, maybe I can wait for it as well :) |
Hi @ABWassim, I agree the current tag lookup and revspec implementation is not so ergonomic. Lines 21 to 48 in 74e3675
I am going to take some time to finish this. I will be off next week and this PR will probably need a breaking change on the revspec arg parsing. But you can start from this branch and see if it solve your current problem with tag lookup. Let me know how it goes and if anything need to be changed there. |
Thanks @oknozor ! I'll have a look at this |
Is your feature request related to a problem? Please describe.
In a monorepo context we cannot generate a changelog for a specific package. The aim of this feature is to be able to genrate only changelog body of sub-repo for instance to be able to push it on a release in github for instance.
Describe the solution you'd like
For instance like we can do in
get-version
:cog changelog --package gill-app
Describe alternatives you've considered
For now we stick in using a custom bash script to extract latest changelog changes
Usage:
./changelog-extract.sh ./crates/gill-app/CHANGELOG.md
But it's not extensible and we cannot leverage
--at
and other arguments ofcog changelog
The text was updated successfully, but these errors were encountered: