Create Draft Pull Request from the API #24461
-
I am creating Pull Request through the GitHub API, and was trying to submit a Pull Requets in draft mode. I followed ths updated API Documentation for creating a pull request, and took these steps:
But the resulting Pull Request was still a “regular” one. Can anyone tell if I am doing something wrong, or perhaps this functionality is not yet available? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks for the question. According to the blog post introducing this support, it appears that creating draft pull requests is limited to the v4 GraphQL API and the v3 REST API only supports draft indicators in API responses. It appears that if you want to create draft pull requests, you’ll need to use the v4 GraphQL API. I hope that helps! |
Beta Was this translation helpful? Give feedback.
Thanks for the question.
According to the blog post introducing this support, it appears that creating draft pull requests is limited to the v4 GraphQL API and the v3 REST API only supports draft indicators in API responses. It appears that if you want to create draft pull requests, you’ll need to use the v4 GraphQL API.
I hope that helps!