Ejemplo n.º 1
0
func isAcceptPullRequestAction(prAction string) bool {
	return sliceutil.IsStringInSlice(prAction, []string{"opened", "reopened", "synchronize", "edited"})
}
Ejemplo n.º 2
0
func isAcceptEventType(eventKey string) bool {
	return sliceutil.IsStringInSlice(eventKey, []string{tagPushEventID, codePushEventID, mergeRequestEventID})
}
Ejemplo n.º 3
0
func isAcceptMergeRequestState(prAction string) bool {
	return sliceutil.IsStringInSlice(prAction, []string{"opened", "reopened"})
}
Ejemplo n.º 4
0
func isAcceptEventType(eventKey string) bool {
	return sliceutil.IsStringInSlice(eventKey, []string{"repo:push", "pullrequest:created", "pullrequest:updated"})
}