barelyhuman / barelyhuman/commitlog

Category Labels (RFC)

オープン
#13 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
81
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start by reviewing the current category parsing behind the --categories flag and compare it with the proposed repeated --category form. Define how labels should be separated from complex regexes, then verify that category headings are generated with the requested labels for both simple and complex patterns.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
go
領域
cli, tooling
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。