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

Missing feature: detete an issue

Open sivantoledo opened this issue 1 year ago • 1 comments

Hi, I am using the library, thank you very much! Works great.

I am using it mostly to manage issues, and I need a method to completely delete an issue, not only to close it. On the GitHub web interface there is a button to delete an issue, so I assume that this is possible via the API. However, there is no method in GHIssue to delete an issue.

The CLI tool "gh" does allow deleting an issue, so I assume that this is possible through the API.

Can you please add a delete or removeIssue to GHIssue.java?

Thank you very much, Sivan

sivantoledo avatar Apr 11 '23 08:04 sivantoledo

@sivantoledo don't think Github exposes any REST API to delete an issue. Refer https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#update-an-issue GraphQL seems to have a mutation to do this https://docs.github.com/en/graphql/reference/mutations#deleteissue

jeetchoudhary avatar Jul 13 '23 00:07 jeetchoudhary