barelyhuman / barelyhuman/commitlog

Category Labels (RFC)

Open
#13 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
81
Forks
3
PR merge metrics
No merged PRs in 30d

Description

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
```sh
$ commitlog g --categories="feat:,fix:"
```

```md
## 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.
```sh
$ 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.