-
Notifications
You must be signed in to change notification settings - Fork 38
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
No way to close a PR. #63
Comments
I was thinking about giving this a whirl. Assuming that's fine, I had a couple of questions before actually trying it:
|
Nice, this would be a welcome addition indeed. To be honest, I am no arc expert at all. I did use it every day at work, but I had my two to three things I did with it and don't know the details about all the other commands. I think I think steps iii and iv.b don't need to be implemented. They are no local branches, just the references to remote branches (refs/remotes/origin/spr/...), and those will get removed by the "git push --delete ...". Other than that: looks good! |
We want to be able to close a PR from `spr`. This follows a lot of what happens in the other commands: we grab the commit, find its related PR, close it, and delete any branches. We also give it a `--all` option so that all PRs in a stack can be closed at once. Closes: #63 Test Plan: There are three scenarios we want to check: closing a PR based on the trunk branch, closing a PR based on a non-trunk branch, and closing a stack of PRs. ## Trunk branch 1. Create a PR with `spr diff`. 1. Run `spr close`. - [ ] The PR should be closed - [ ] The head branch should be deleted on GitHub. - [ ] The commit message should no longer have the "Pull Request" or "Reviewed By" sections. ## Non-trunk branch 1. Create one PR with `spr diff`. 1. Create a second PR with `spr diff`. 1. Run `spr close` on the second PR. - [ ] The PR should be closed - [ ] The head branch should be deleted on GitHub. - [ ] The base branch should also be deleted on GitHub. - [ ] The commit message should no longer have the "Pull Request" or "Reviewed By" sections. ## Stack of PRs 1. Create one PR with `spr diff`. 1. Create a second PR with `spr diff`. 1. Run `spr close --all` on the second PR. - [ ] Each PR should be closed - [ ] Each head branch should be deleted on GitHub. - [ ] Each base branch should also be deleted on GitHub. - [ ] Each commit message should no longer have the "Pull Request" or "Reviewed By" sections. Reviewers: sven-of-cord Reviewed By: sven-of-cord Pull Request: #109
@joneshf reported this in #61
The text was updated successfully, but these errors were encountered: