Skip to content
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

fotingo review fails if a PR already exists for the branch #627

Open
eager opened this issue Sep 10, 2020 · 2 comments
Open

fotingo review fails if a PR already exists for the branch #627

eager opened this issue Sep 10, 2020 · 2 comments

Comments

@eager
Copy link

eager commented Sep 10, 2020

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
@tagoro9
Copy link
Owner

tagoro9 commented Sep 22, 2020

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

@eager
Copy link
Author

eager commented Sep 22, 2020

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 :-/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants