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
DRAFT: package changelog #380
base: main
Are you sure you want to change the base?
Conversation
3d8f3ca
to
bc17cdb
Compare
bc17cdb
to
42c48fe
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #380 +/- ##
==========================================
- Coverage 86.38% 86.17% -0.21%
==========================================
Files 49 49
Lines 7072 7081 +9
==========================================
- Hits 6109 6102 -7
- Misses 963 979 +16 ☔ View full report in Codecov by Sentry. |
Hey @oknozor, I noticed a weird behavior when a commit contains multiple tags (which can happen when bumping with multiple packages that were updated). Looks like when generating a Changelog for a package, it takes the latest created tag on the commit rather than the one that belongs to the package. It is illustrated by the test I added :
Looks like the issue comes from the I need to figure out a clean solution for that issue but if you have some idea I'd like to hear it :) |
a94ac05
to
b7b49eb
Compare
Hey I @ABWassim, I suspected this would be an issue at some point. cocogitto/src/git/rev/cache.rs Line 9 in 23e4310
Instead of Once we have that we should be able to change the |
Hey @oknozor, thanks for the hint ! I'll try my best at it |
I also chose to remove the
get_changelog_at_tag
function since it is only used in the context ofcog changelog
and it only makes a call toget_changelog
. The--at
andpattern
ofcog changelog
are now processed in the "body" ofcog changelog
to directly compute the final pattern.What do you think ? Gonna write tests + doc soon