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
Add 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. :-( |
@sfdye I confirmed what @s-t-e-v-e-n-k has reported here from the docs: https://docs.github.com/en/rest/reference/pulls#update-a-pull-request In this case do we close this issue or how we approached such request in the past? |
PullRequest.edit
does not allow adraft
attribute:The text was updated successfully, but these errors were encountered: