Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd support for modifying PR draft status #1461
Comments
|
I might be wrong, but it looks like this is not yet possible to update the draft attribute since this attribute is not exposed : https://developer.github.com/v3/pulls/#update-a-pull-request |
|
I think you're right, I tried making a plain HTTP request and it didn't work. Also, in the documentation they hint at this being available only v4. Bummer. |
|
It's definitely in the output and the draft attribute is already in the PullRequest class, however it does not seem possible to update it through the PATCH method (I also tried when @charlax submitted the issue) |
|
Maybe need some custom headers? |
|
Nope, custom headers won't help, the docs don't list it at all for the PATCH call. :-( |

PullRequest.editdoes not allow adraftattribute: