-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Make possible to move a PR from Draft to Ready #2989
Comments
It looks like this is not possible. :-( The GH doc for updating a PR says "State of this Pull Request. Either open or closed" |
gh api is available to make draft to ready but there are other challenges of assigning reviewers/team reviewers |
|
HOW? What about Ready -> Draft? Thanks! |
use the api call to convert to draft -> true |
This doesn't work: |
you have to use pygit subprocess ` result = subprocess.run(
|
Thanks, but that's not using PyGithub . . . |
yes, that is the limitation, you will have to go to Octokit lib |
On this GitHub doc page, they mention that the GitHub CLI has a This SO answer comes to a similar conclusion and references issue ( google/go-github#1120 ) with more details |
Looking at the REST API, it does not look like you can modify the Looking at the GraphQL API, marking a pull request as "ready for review" seems to be the desired action: https://docs.github.com/en/graphql/reference/input-objects#markpullrequestreadyforreviewinput There is prior art of calling out to the GraphQL API in PyGithub: So this feature should be easy to add. Contribution welcome! |
Indeed one of my collaborators pointed out this discussion thread, which had a workable approach: https://github.com/orgs/community/discussions/70061 |
Today is possible to create a PR as a draft with the Repo.create_pull method, but I didn't find a way to make a
draft
PRready
, since the PullRequest.edit doesn't support thedraft
attribute as specified on Github Documentation.Am I correct? Can I submit a PR for this feature?
The text was updated successfully, but these errors were encountered: