Skip to content
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

Exclude tags that match a pattern #204

Open
GeeTransit opened this issue Mar 8, 2022 · 0 comments
Open

Exclude tags that match a pattern #204

GeeTransit opened this issue Mar 8, 2022 · 0 comments

Comments

@GeeTransit
Copy link

Hello! Is there a way to exclude certain tags?

I use setuptools_scm which sets the version based on the last tag found. To increment the version, say 1.2.3 to 1.3.0, I tag the next commit with v1.3.0-dev which increments the version.

My current very hacky workaround involves using options.tag_filter_pattern to filter the tags I want. Here's what I did to match version tags that don't end in -dev:

options:
  tag_filter_pattern: ^v(.{0,3}|.*([^-]...|-[^d]..|-d[^e].|-de[^v]))$

Two potential solutions that I thought of:

  • use another regex library that supports more features like negative lookbehinds (^v.*(?<!-dev)$)
  • have another option that specifies tags to exclude, complementary to tag_filter_pattern (-dev)

Environment

OS: Windows 10
git-chglog version: 0.15.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant