-
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
Plugin should respond to change in MR assignment #270
Comments
I have the following setup:
No dev directly pushes to master. |
@smithrs just to add to that - a MR does not HAVE to go to master directly. If your workflow requires, then you could (for example) have MR's going into a "release branch" or something like that. Everything should still work fine as explained above. |
The core issue is that an MR update event sends one webhook (expressed as a json object), and a branch push sends another webhook (a different object). Sometimes I want to respond to one, sometimes to the other, and other times I want to handle both in the same job. My question is in regard to how this granularity is addressed. 1.1.32 has a certain way of doing this, 1.2 seems different, but the whole thing appears to be in flux. I'm fine with letting this issue be closed and then revisiting it after the refactoring is done. Thanks for all the help. |
I have the following use case:
My manager wants to stop all developers for pushing to master, period, All work should be done on branches and use Merge Requests.
Gitlab does not support this use case. If you can't push to master, you also can't accept a MR that would push to master on acceptance (https://gitlab.com/gitlab-org/gitlab-ce/issues/967 and https://gitlab.com/gitlab-org/gitlab-ce/issues/1374).
I have a novel solution to this. If a developer could assign the MR to the Jenkins user, that would fire a web hook that Jenkins could respond to. A Jenkins job could validate the MR using whatever criteria we choose (upvotes, tests passing, etc).
The problem is that the plugin doesn't catch this. There have been prior issues that have raised this question in other ways (#144 for example). It comes down to this: I want to be able to catch all MR webhook events, including updates.
I'm not really a Java guy, but I can certainly look at the code and see what's going on. I see several pull requests that seem to address this issue, and hacking into the code for
GitLabWebHook.java
as it currently stands seems counterproductive, it's being refactored, right?I'm open to suggestions and happy to help out. Thanks.
The text was updated successfully, but these errors were encountered: