-
Notifications
You must be signed in to change notification settings - Fork 136
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
Crash if no pipeline is run #104
Comments
This looks like a bug. Note that Meta question: Irrespective of its current state of implementation, are you sure you want to --use-merge-strategy in the first place? Note that you can still can have your source branches merged into master (rather than rebased) by just leaving the default MR strategy in gitlab active (which does that). You only need this options if it's important to you that updating the source branch to the latest commit in the target branch happens via merge rather than rebase (and I'm still not sure why one would want that). |
I guess the crash happens when a pipeline was run for the branch, but not for its latest commit ( Regarding the merge strategy, I may change my mind, but I don't think rewriting (i.e., rebasing) commits that are already pushed is a good idea. I rebase commits in my local branches, but once it's pushed, it's better not to touch it. (By the way, doesn't rebasing break any signature the commits may have?) I also have to deal with a community of developers who are not git masters and have already been trained to use merge. What marge-bot does should not affect them much, but if there is a conflict and when they are going to fix it the remote repository has rebased the commits that they may have further developed on in their branches... I'm sure it will cause confusion. |
I was testing what happens if no pipeline is run for the MR. Here's what I got (using merge strategy, if it matters):
I guess this is because there's no pipeline at all (configured with
only: master
, andmaster
is the target branch, not the source). A graceful handling and a post in the MR would have been much better.The text was updated successfully, but these errors were encountered: