0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【git-spice】git-spice logでレビューのコメント数を確認する方法

0
Posted at

-c / --cr-comments フラグ

git-spice log short / git-spice log long には、-c または --cr-comments というフラグが用意されています。

git-spice log short --cr-comments
# または短縮形
git-spice ls -c

git-spice log long --cr-comments
# または短縮形
git-spice ll -c

このフラグを付けると、各ブランチに対応するPRのレビューコメントの解決数(resolved / total)がログに表示されます。たとえば、3件中2件のコメントが解決済みの場合は次のように表示されます。

  ┌── feature/api-refactor  #42  2/3 comments
  ├── feature/add-login      #41  ✓
◀─┴── feature/setup-db      #40  ✓
main

レビュアーとのやり取りが多いスタックで、どのブランチにまだ未解決のコメントが残っているかを一目で把握できます。

設定ファイルで常に有効にする

# 現在のリポジトリに設定
git config --local spice.log.crComments true

# 全リポジトリに設定(グローバル)
git config --global spice.log.crComments true

spice.log.crCommentstrue にしておくことで、-c フラグなしでも常にコメント数が表示されるようになります。

同様に、PR ステータスを常に表示したい場合は以下のように設定します。

git config --global spice.log.crStatus true

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?