hub4j / github-api

Java API for GitHub
https://github-api.kohsuke.org/
MIT License
1.12k stars 715 forks source link

how to use issuePayload.getIssue().deleteReaction? #1846

Open maxandersen opened 1 month ago

maxandersen commented 1 month ago

how is issuePayload.getIssue().deleteReaction intended to be used when its not possible to create a GHReaction with bot nor user + reaction as parameter?

gsmet commented 1 month ago

Not pretty but I think that's the best you can do: https://github.com/quarkusio/conversational-release-action/blob/3c6befcf4836bf9833ac0b488cf8d79cccb8958b/src/main/java/io/quarkus/bot/release/ReleaseAction.java#L318-L327 .

There's no way to get a given reaction with the GitHub REST API.