GraphQL API should have a isDraft field for Pull Requests #24816
-
It’s currently not possible to tell if the pull request is a draft or not via api v4. API v3 returns a draft field. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Thanks for the feedback! I’ve taken your suggestion and passed it along to the appropriate teams. Thanks again for reaching out 😀 |
Beta Was this translation helpful? Give feedback.
-
Could you bump this suggestion please? It’s such a simple one, and annoying to have to make new api requests to the old api to get this info. |
Beta Was this translation helpful? Give feedback.
-
This is now available under Preview by passing the application/vnd.github.shadow-cat-preview+json Accept header: https://developer.github.com/v4/previews/#draft-pull-requests-preview Example query:
Response:
|
Beta Was this translation helpful? Give feedback.
This is now available under Preview by passing the application/vnd.github.shadow-cat-preview+json Accept header: https://developer.github.com/v4/previews/#draft-pull-requests-preview
Example query:
Response: