-
Notifications
You must be signed in to change notification settings - Fork 619
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
Builds are triggered for non-code changes #926
Comments
Also happening with:
|
Any news on this? @jkugler |
I think the problem is that GitLab sends an MR event on every change in a MR (description, assignee, labels, etc.) and plugin doesn't distinguish them. Looks like the following fields in JSON payload allow to check if actual commits were pushed:
So if both of these fields are present then there are code changes in MR. |
Issue
Builds get triggered on any update to the merge request, not just code pushes and comments.
Context
Logs & Traces
I will provide logs if needed.
Problem description
In a prior version of the plugin, MR builds would only be triggered when the MR was created, when code was updated, or when the "magic comment" was made on the MR. As of a somewhat recent update (1.5.10, I'm not sure now), any change to the MR will trigger a build: change the assignee, change the title, change the description, etc.
Describe your problem in a meaningful way:
Making changes to the MR that should not trigger a build still triggers a build.
The text was updated successfully, but these errors were encountered: