"/repos/OWNER/REPO/pulls/PR_NUMBER" update PR to draft not working #156644
-
Select Topic AreaBug BodyI'm doing a bot to convert automatically a PR to draft with a timeout. Here on the company that I'm working, we have a workflow, when a PR is ready to review, we just create a environment and deploy the current version to it. Now we have to convert the PR to draft to kill this environment and I can't do it through the REST API. I'm doing this curl above: And getting 200 on the request. The response is: I expected that this request would convert this PR to draft. But it was not converted. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
I tried using github cli, it's not working too I have tried In this way: The response is success, but when I check using this command: The result still beeing The other way was using the edit from gh: But it said that --draft isn't a valid flag: |
Beta Was this translation helpful? Give feedback.
-
|
I have success using this command from DeepSeek. The REST API still not working, but in this way I can convert it to draft. |
Beta Was this translation helpful? Give feedback.
I have success using this command from DeepSeek.
The REST API still not working, but in this way I can convert it to draft.