Adding a filter for issue #17

This commit is contained in:
bassrock 2014-10-05 10:58:31 -07:00
parent c91de8bfb5
commit 44edf2ed18
1 changed files with 4 additions and 0 deletions

View File

@ -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);