-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Close pull-requests #1151
Comments
No, not right now unfortunately. We're working on improving the |
Would be awesome to have this to be able to make a github-flow utility similar to Hubflow |
hey @mislav how difficult would this be for a new contributor? |
@michaellady It shouldn't be too hard if you're willing to study the GitHub API a bit and also how existing HTTP operations are implemented in |
Is this on a roadmap of any kind given that it's almost 2 years old and given that #1099 has landed? |
@brianjmurrell Editing issues and PRs (which includes closing them too) is planned for the next feature release; until then you can use the latest stable release to close them like so: hub api -XPATCH repos/{owner}/{repo}/issues/1234 -f state=closed where "1234" is the issue or PR number you want to close. |
@mislav Mislav, it would be very helpful if hub command supported closing PRs. You mentioned that this is coming in the next feature release. Do you have a sense of a timeline? When can we expect it to become available? |
@mbasmanova No clear timeline for editing/closing PRs and issues yet, sorry! Contributions welcome. In the meantime, you can use |
|
I found an additional workaround here. If you delete the branch associated with the PR it will close the PR.
|
In hub master, this can now be done via (GitHub pull requests can be treated the same as issues for the most part) |
Is there a way to close pull requests via hub?
The text was updated successfully, but these errors were encountered: