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

Category Labels (RFC) #13

Open
barelyhuman opened this issue Jun 26, 2022 · 0 comments
Open

Category Labels (RFC) #13

barelyhuman opened this issue Jun 26, 2022 · 0 comments

Comments

@barelyhuman
Copy link
Owner

Needs comments / suggestions on how to handle regex labels for commitlog.

Currently the categorization works in the following way.

Eg: a catg regex like so would produce the labels

$ commitlog g --categories="feat:,fix:"
## feat:
## fix: 

Though this doesn't make sense when you have really complex regex's handling the categorisation.

So, there needs to be a way to create labels for these category regexes

One possible way is to change the way the flags are parsed and have more than one instance of the flag.

$ commitlog --category="Features%%feat:" --category="Fixes%%fix:"

Considering the chances of %% being together in a regex being very rare and also since the logic would only take the first separation to get the LABEL everything else would be compiled back as regex.

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