-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
Previous not populated when using --latest and skip_tags are set but don't match #44
Comments
Hello, good catch! This should be fixed in 943c23f, can you try it out and let me know if it works as expected? |
Yes, that did indeed solve it, I do have another question about this, it might be semi-related? Please do tell if you want a separate issue about this but: Let's presume I want to run something like this: But ideally, I would want to run something like this: Is this somehow possible or not at all? Since |
Thanks for testing this out!
Yes, that would be nice 👍🏼
This is supposed to be possible. Actually, there is an example command (which is similar to what you gave as an example) in # 1- changelog header is removed from CHANGELOG.md
# 2- new entries are prepended to CHANGELOG.md without footer part
git cliff --unreleased --tag 1.0.0 --prepend CHANGELOG.md So I'm not sure if there is a problem here. Maybe you have a different use-case for P.S. Sorry for the late reply. |
Describe the bug
If
skip_tags
is defined with a regex that correctly generates the changelog (by skipping the correct/defined ones), there is a regression when settingprevious
and using--latest
which was supposed to be fixed here: #3But it looks like if you use
--latest
in combination withskip_tags
, even if the pattern should not match the tag at all, it will simply not populate theprevious
field. This might have been introduced here(?): 7f867aeIf I remove the
skip_tags
from the config while generating with--latest
,previous
is populated as expected.To Reproduce
Steps to reproduce the behavior:
All tags on the repo in question:
Expected behavior
Expect
skip_tags
to not drop unrelated tags from theprevious
field.System (please complete the following information):
The text was updated successfully, but these errors were encountered: