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

GHIssueStateReason should add reopened #2037

Open
rnveach opened this issue Feb 17, 2025 · 1 comment
Open

GHIssueStateReason should add reopened #2037

rnveach opened this issue Feb 17, 2025 · 1 comment

Comments

@rnveach
Copy link
Contributor

rnveach commented Feb 17, 2025

https://github.com/hub4j/github-api/blob/e14ec3b3677760714cd096ad8157a3e6a6dded65/src/main/java/org/kohsuke/github/GHIssueStateReason.java

https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#update-an-issue

state_reason string or null
Can be one of: completed, not_planned, reopened, null

reopened is supported and should be added.

@rnveach
Copy link
Contributor Author

rnveach commented Feb 17, 2025

Actually there is a re-open method. I am not sure if it makes more sense to have that use reopen (as the reason) instead of adding this to the enum.

public void reopen() throws IOException {

I tried looking for closing as a duplicate and it is weird the API doesn't allow it, but it is a feature on GH web UI.

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

No branches or pull requests

1 participant