Questions about PR "namespacing" #301
-
First things first: thanks for making I've ran into a couple of behaviors that were initially surprising to me as an ex-Gerrit user, and they are both related to how
I understand different people have different workflows and mine isn't necessarily the "correct" one, but I feel like both the user ID and the local branch namespacing could be dropped without any loss of functionality. Any thoughts? Thanks in advance... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I had the exact same experience when I moved from Gerrit to GitHub, and that's why I wrote spr, glad it is useful for you as well. |
Beta Was this translation helpful? Give feedback.
I had the exact same experience when I moved from Gerrit to GitHub, and that's why I wrote spr, glad it is useful for you as well.
spr works by matching the commits in your local stack with pull requests on github, the local branch name is used to filter all your pull requests on github down to the ones that match your stack (by matching on branch name).
This logic could be changed to go through all the pull requests and only match with commit-ids that are present in the stack. The only thing I can think of that will be lost using this approach is the case where you drop a commit from your stack. In the current behavior the github pull request will be automatically closed, if we only matc…