gh minimize

GitHub CLI extension to minimize (hide) issue and pull request comments with a reason such as "off-topic", "resolved", or "spam".
Install
Make sure you have version 2.0 or
newer of the GitHub CLI installed.
gh extension install heaths/gh-minimize
Usage
List issue or review comments so you can find comment IDs:
gh minimize list 123
gh minimize list 123 --author octocat --author hubot --body-grep 'obsolete.*context'
gh minimize list 123 --json id,author,isMinimized
gh minimize list 123 --jq '.[].author'
gh minimize list 123 --jq '[.[] | select(.authorType == "bot")]'
gh minimize list 123 --template '{{range .}}{{printf "%s\t%t\n" .author .isMinimized}}{{end}}'
Use -R / --repo to target another repository in [HOST/]OWNER/REPO format.
Minimize or unminimize a comment directly by ID:
gh minimize --id MDEyOklzc3VlQ29tbWVudDE= --reason off-topic
gh minimize --id MDEyOklzc3VlQ29tbWVudDE= --undo
Filter comments in an issue or pull request by author and/or body regex:
gh minimize 123 --author octocat --body-grep 'obsolete.*context' --reason outdated
gh minimize 123 --author octocat --body-grep 'obsolete.*context' --undo
Valid --reason values:
abuse
duplicate
low-quality
off-topic
outdated
resolved
spam
License
Licensed under the MIT license.