Edit comment - Minimize specific comment with reason
Author: EmilgardisCreated Dec 4, 2023Updated Sep 15, 2026
Labelsenhancementgh-prgh-issue
Describe the feature or problem you’d like to solve
I have a list of comments retrieved and filtered using something like gh pr view 1 -c --json comments | jq '.', now I want to edit these specific comments to minimize them with a specific reason (Spam, Abuse, Off, Outdated, Duplicate, Resolved).
Specifically this button on the front-end
I want to do this for moderation in an issue, where currently it's very annoying to hide/resolve/delete multiple comments as each action refreshes the page.
Proposed solution
This would further enhance editing of comments, where currently it's only possible to edit the body, but it's not possible to do mass-actions on multiple comments.
Additional context
I'm imagining something like this:
gh pr comment <id> --minimize hide
gh pr comment <id> --deletethis is related to #1865, #3613 and #6161
Source: cli/cli