Is there a way to close a GitHub issue as Not planned by using the GitHub node?
I’ve been playing a little bit with GitHub node and there is no ‘Close’ action per se, but there is an ‘Edit’ action that then can be configured to edit the State of a GitHub issue, from Open to Closed and viceversa.
In GitHub, it is possible to close an issue as ‘Completed’ or as ‘Not planned’, as if it got discarded because any reason.
Am I missing anything or currently you can only close an issue as ‘Completed’ but not as ‘Not planned’?
Any workaround?
Thanks!
n8n version: 0.126.1
Database (default: SQLite): SQLite
n8n EXECUTIONS_PROCESS setting (default: own, main): not sure…
Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
@RamJ , you can use HTTP Request node following the GitHub API documentation. By default, the issue will be closed as “completed”. To set it as “not planned” you need to add an additional property to the body, namely state_reason, with PATCH request.
Thanks @ihortom . Indeed, I just used an HTTP request block as per your suggestion and it is working great. I guess it would be cleaner to have it in the GitHub node, but until that is supported at least we can have the same functionality this way.