github-api
github-api copied to clipboard
Missing feature: detete an issue
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 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