Adding a filter for issue #17
This commit is contained in:
parent
c91de8bfb5
commit
44edf2ed18
|
@ -318,6 +318,10 @@ public class GitLabWebHook implements UnprotectedRootAction {
|
|||
LOGGER.log(Level.INFO, "Closed Merge Request, no build started");
|
||||
return;
|
||||
}
|
||||
if(request.getObjectAttribute().getState().equals("merged")) {
|
||||
LOGGER.log(Level.INFO, "Accepted Merge Request, no build started");
|
||||
return;
|
||||
}
|
||||
|
||||
Authentication old = SecurityContextHolder.getContext().getAuthentication();
|
||||
SecurityContextHolder.getContext().setAuthentication(ACL.SYSTEM);
|
||||
|
|
Loading…
Reference in New Issue