I am looking for a way to programmatically mark a PR as draft again. I don’t see anything in the v3/v4 APIs. There is only the field, but it’s ready-only. Is that only a UI feature and why?
I did find a mutation in the v4 GraphQL API that I am using for the other way around, i.e. to mark a draft PR as ready-for-review (https://developer.github.com/v4/mutation/markpullrequestreadyforreview), but nothing to mark a ready-for-review PR as draft.
Does anybody know how to do that or where I would file a feature request for that?
Thanks in advance, Vedran