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
Change the behavior of skip_tags not to drop commits but to include them in the next tag #36
Comments
|
@orhun Hi, thank you for developing this awesome project! |
|
Hello! Thanks for the detailed report and example implementation
That's completely fair!
I think it would be better to add a new option to the configuration file such as skip_tags = { regex = "v0.2.0-beta.1", drop = true }So, if
I liked this approach, it can be shaped into something that would allow both use cases for providing high extensibility. Do you want to finalize this and submit a PR or should I take it from here? What do you say?
That's correct I'd say. |
|
@orhun Thank you for the quick reply!
skip_tags = [
{ regex = "v0.1.0-beta.1", drop = true },
{ regex = "v.*-beta.*", drop = false },
]
skip_tags = [
{ regex = "v0\.[0-3]\..*", drop = true },
{ regex = "v.*-beta.*", drop = false },
]Or considering the use cases, I feel like adding a new option is enough. skip_tags = "v0.1.0-beta.1"
ignore_tags = "v.*-beta.*"skip_tags = "v0\.[0-3]\..*"
ignore_tags = "v.*-beta.*"Also then, to keep the naming consistent,
I feel adding
If possible, I'd like to send a PR (after discussing the approach here) and get reviews from you, it that okay for you? |
Ah, you are right. Having So adding a new field called
LGTM!
Feel free to submit a PR |
* feat: add ignore_tags option Resolves (#36) Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * test: add a test using GitHub Actions Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * docs: fix style Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * chore: add ignore_tags to example config files Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * style: refactor test-fixtures workflow Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
|
This is implemented now. Closing out! |
kenji-miyake commentedNov 28, 2021
Is your feature request related to a problem? Please describe.
While testing this tool, I felt the
skip_tagsoption behaves unnaturally.The current behavior seems completely dropping commits from the changelog, but I believe that if a certain tag is skipped, it should be included in the next tag.
So for example, supposing the commits and tags are like the following and that
skip_tagsisv0.2.0-beta.1,The current behavior is:
However, it should be:
Describe the solution you'd like
Changing the behavior of
skip_tagscan solve the problem, I believe.This is an example of the implementation.
kenji-miyake@89d0bf4
How to test:
Describe alternatives you've considered
Seeing your use case, it seems you'd like to drop commits before
v0.1.0-beta.1, which has a lot of commits.Therefore, I guess it's nice to add another option like
skip_beforeor so.Additional context
Since we can drop commits by setting
skip = trueincommit_parsers, I guess there is no problem with changing like this.The text was updated successfully, but these errors were encountered: