修复关闭PR不可触发构建
This commit is contained in:
parent
151ef81c5d
commit
df0430640e
|
@ -33,10 +33,9 @@ public final class MergeRequestHookTriggerHandlerFactory {
|
|||
}
|
||||
|
||||
private static Set<Action> retrieveAllowedActions(boolean triggerOnApprovedMergeRequest) {
|
||||
Set<Action> allowedActions = EnumSet.of(Action.open, Action.update);
|
||||
Set<Action> allowedActions = EnumSet.of(Action.open, Action.update, Action.close, Action.merge);
|
||||
if (triggerOnApprovedMergeRequest)
|
||||
allowedActions.add(Action.approved);
|
||||
allowedActions.add(Action.merge);
|
||||
return allowedActions;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue