Feature Request: add support to hide a issue/PR comment #140663
Unanswered
sebastiaanspeck
asked this question in
API and Webhooks
Replies: 2 comments
-
Keen to have REST API support for hiding issue/PR comments as part of the existing "update an issue comment" endpoint. For reference, it'd be handy to choose the reason for hiding, as shown in the UI below. My particular use-case is for programmatic hiding of outdated bot-comments. |
Beta Was this translation helpful? Give feedback.
0 replies
-
As a workaround one can currently use the GraphQL API through Octokit: mutation {
minimizeComment(input: { subjectId: "nodes.id here", classifier: OUTDATED }) {
minimizedComment { isMinimized }
}
} You can get the query {
repository(owner: "foo", name: "bar") {
pullRequest(number: 1) {
comments(last: 100) {
nodes {
# Use this as subjectId
id
author { login }
viewerCanMinimize
}
}
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
General
Body
It would be great if we could hide an issue/PR comment using the GitHub REST API. Right now you can only delete a comment, why not hide it using the API?
Beta Was this translation helpful? Give feedback.
All reactions