fotingo icon indicating copy to clipboard operation
fotingo copied to clipboard

`fotingo review` fails if a PR already exists for the branch

Open eager opened this issue 4 years ago • 2 comments

Sometimes, I create a draft PR before the ticket is ready to review. I’d like to be able to do this, and then use fotingo review to update the issue status (and optionally add the PR comment).

$ fotingo review
⬆️  Pushing branch
🔎   Analyzing commit history
🐛   Getting information for <ticket ID>
📝   Creating pull request
💥   A PR already exists for this branch

eager avatar Sep 10 '20 19:09 eager

I tried, but I didn't find a way in the REST API to update a draft PR to be ready for review: https://docs.github.com/en/rest/reference/pulls#update-a-pull-request

tagoro9 avatar Sep 22 '20 04:09 tagoro9

I didn't find a way in the REST API to update a draft PR to be ready for review

I looked at the CLI source, and it uses the GraphQL API :-/.

eager avatar Sep 22 '20 14:09 eager