barelyhuman / barelyhuman/commitlog
Category Labels (RFC)
- Langage dominant
- Go
- Étoiles
- 81
- Forks
- 3
- Métriques de merge des PR
- Aucune PR mergée en 30 j
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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par examiner l’analyse actuelle des catégories derrière l’option --categories et comparez-la à la forme répétée --category proposée. Définissez comment les labels doivent être séparés des expressions régulières complexes, puis vérifiez que les en-têtes de catégorie sont générés avec les labels demandés, aussi bien pour les motifs simples que complexes.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- go
- Domaine
- cli, tooling
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100