github-api icon indicating copy to clipboard operation
github-api copied to clipboard

Enable hiding of comments

Open koppor opened this issue 9 months ago • 4 comments

I have comment count 3, but the PR has much more: https://github.com/JabRef/jabref/pull/12710

I "deleted" the other comments using comment.delete(). It seems this has no effect on the UI.

In the UI, one can use "Hide"

Image

Image

Should be possible via API, too?

koppor avatar Mar 12 '25 12:03 koppor

Refs https://github.com/isaacs/github/issues/1480.

koppor avatar Mar 12 '25 12:03 koppor

~~I mixed up review comments and normal comments.~~

koppor avatar Mar 12 '25 13:03 koppor

Checked today. I am really ltalking about normal comments.

Hiding not available in API: https://hub4j.github.io/github-api/apidocs/org.kohsuke.github.api/org/kohsuke/github/GHIssueComment.html

koppor avatar Mar 28 '25 05:03 koppor

Is comment hiding available in the REST API or is it only available through GraphQL?

If the former, that's normal for this library.

If the latter, we have another recent change that used GraphQL mutation. #2056 You could leverage that work.

PR welcome.

bitwiseman avatar Mar 28 '25 16:03 bitwiseman