-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Add additional validation when creating merge requests #20
Comments
I observed the first bullet point this evening. I don't think it's the fault of the tool, but perhaps it would provide expected behavior of it checked for the source branch to exist. I think automatically pushing the branch could be dangerous, but maybe if it's not force pushed? I'm not sure. Just a warning from the MR creation that source branch doesn't exist & and exit might be enough. Maybe include a flag to automatically push the branch if it doesn't exist, as long as it's up to the user to do the override from the less dangerous behavior of a push without alerting. edit:
|
Tempted to change the defaults when I fix this as well. Currently lab assumes origin/upstream if the branch doesn't point to its remote. Perhaps the forked remote should be the default which would likely reduce the chances of hitting this case entirely. |
[#20] (mrCreate) default to forked-from branch and check for branch pushed
Bullet point 1 fixed in |
Bullet point 2 fixed in |
I've run into 2 cases where lab permitted creating an MR when it really shouldn't have.
The text was updated successfully, but these errors were encountered: