Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing feature: detete an issue #1640

Open
sivantoledo opened this issue Apr 11, 2023 · 1 comment
Open

Missing feature: detete an issue #1640

sivantoledo opened this issue Apr 11, 2023 · 1 comment

Comments

@sivantoledo
Copy link

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

@jeetchoudhary
Copy link
Contributor

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants