Closing issues via API
Created by: m4tthumphrey
There is something very wrong with the method of closing issues via the API. Originally you could close and then reopen issue simply with the closed
attribute (true
or false
) as part of the PUT request. Now it seems to be a complete mess...
- There is a state property which contains the current state of the issue (closed or open (and possibly reopen)) but cannot be updated explicitly
- You have to update the
state_event
property to update the state of the issue (completely undocumented - I had to look into /lib/api/issues.rb to see what was going on) - The documentation is so wrong - it currently states that you should pass
closed
as1
to close an issue which simply does nothing - Once a comment has been closed you cannot reopen it any more because it is treated as deleted once you close it
I purposely haven't opened a pull request for this because I have no idea of @randx's intentions to this area. I believe the confusion was caused when the response codes were changed.
I will gladly take this on myself if I can get confirmation of how it should be handled.