-
Notifications
You must be signed in to change notification settings - Fork 72
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
upload: Check PRs merge into base branch rather than base ref #207
Conversation
The logic for checking whether a PR was improperly merged was allowing the target branch name, which could be a relative branch. We don't want that, we only want changes to merge into the base branch of the entire chain. This also helps handle some reordering issues. Topic: reorder3 Reviewers: aaron, brian-k
Reviews in this chain: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. I think it should be fine to merge into either the base branch, or the review.remote_base
? For example, sometimes I'll upload a PR relative to someone else's PR as a suggestion/demo, with the intent that they'll merge my PR into theirs before merging theirs into its base. And that sort of thing should be fully revup-supported with #205 (you could already do it with two of your own PRs but I don't have a use case for that)
if you intend to use the github merge UI you should be using base-branch : you intend to merge into this. if pr is merged, revup does not re-create it |
specifically #205 is for when you intend to take over someone else's branch (and this confusion aspect was probably why i didn't originally allow this). if you don't intend to take over the branch you should still use relative-branch (or base-branch perhaps). this is because 2 people pushing to a branch will be confusing -- revup makes no attempt to integrate the push efforts of 2 different uploaders working simultaneously |
Good point, if you're relative to someone else's branch using |
The logic for checking whether a PR was improperly merged was allowing
the target branch name, which could be a relative branch. We don't want
that, we only want changes to merge into the base branch of the entire chain.
This also helps handle some reordering issues.
Topic: reorder3
Reviewers: aaron, brian-k