Add repository_dispatch endpoint
Adding support for the /repos/{owner}/{repo}/dispatches endpoint that allows us to dispatch custom webhook events from repositories to trigger workflows. See more here: https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#create-a-repository-dispatch-event
@felix-seifert or @Abhi347 perhaps for a review? 😄
I did consider tests, but the response for that endpoint is always a 204 with no body (similar to the editComment and deleteComment methods). Unsure what I'd be testing (perhaps I can simply check for a 204 no body response?). Happy to take suggestions.
I did consider tests, but the response for that endpoint is always a 204 with no body (similar to the
editCommentanddeleteCommentmethods). Unsure what I'd be testing (perhaps I can simply check for a 204 no body response?). Happy to take suggestions.
Hi @ajmalab, yeah exactly. It's mostly for safety in case this code where to change. Even testing something as simple as a 204 response is still valuable. You'll see similar tests in RepositoryClientTest.java.
@ebk45 @Abhi347 Added a test, please do let me know if you require further changes 😄
Could I get a review please 🙏 @ebk45 or @Abhi347 perhaps?