def __init__(self, trigger, types=[], branches=[], refs=[], comments=[], actions=[], labels=[], unlabels=[], states=[], statuses=[], required_statuses=[], ignore_deletes=True): EventFilter.__init__(self, trigger) GithubCommonFilter.__init__(self, required_statuses=required_statuses) self._types = types self._branches = branches self._refs = refs self._comments = comments self.types = [re.compile(x) for x in types] self.branches = [re.compile(x) for x in branches] self.refs = [re.compile(x) for x in refs] self.comments = [re.compile(x) for x in comments] self.actions = actions self.labels = labels self.unlabels = unlabels self.states = states self.statuses = statuses self.required_statuses = required_statuses self.ignore_deletes = ignore_deletes
def __init__(self, trigger, types=[], branches=[], refs=[], event_approvals={}, comments=[], emails=[], usernames=[], required_approvals=[], reject_approvals=[], ignore_deletes=True): EventFilter.__init__(self, trigger) GerritApprovalFilter.__init__(self, required_approvals=required_approvals, reject_approvals=reject_approvals) self._types = types self._branches = branches self._refs = refs self._comments = comments self._emails = emails self._usernames = usernames self.types = [re.compile(x) for x in types] self.branches = [re.compile(x) for x in branches] self.refs = [re.compile(x) for x in refs] self.comments = [re.compile(x) for x in comments] self.emails = [re.compile(x) for x in emails] self.usernames = [re.compile(x) for x in usernames] self.event_approvals = event_approvals self.ignore_deletes = ignore_deletes
def __init__(self, trigger, types=[], branches=[], refs=[], event_approvals={}, comments=[], emails=[], usernames=[], required_approvals=[], reject_approvals=[], ignore_deletes=True): EventFilter.__init__(self, trigger) GerritApprovalFilter.__init__(self, required_approvals=required_approvals, reject_approvals=reject_approvals) self._types = types self._branches = branches self._refs = refs self._comments = comments self._emails = emails self._usernames = usernames self.types = [re.compile(x) for x in types] self.branches = [re.compile(x) for x in branches] self.refs = [re.compile(x) for x in refs] self.comments = [re.compile(x) for x in comments] self.emails = [re.compile(x) for x in emails] self.usernames = [re.compile(x) for x in usernames] self.event_approvals = event_approvals self.ignore_deletes = ignore_deletes
def __init__(self, trigger, types=[], pipelines=[]): EventFilter.__init__(self, trigger) self._types = types self._pipelines = pipelines self.types = [re.compile(x) for x in types] self.pipelines = [re.compile(x) for x in pipelines]
def __init__(self, trigger, types=[], refs=[], statuses=[], comments=[], actions=[], tags=[], ignore_deletes=True): EventFilter.__init__(self, trigger) self._types = types self._refs = refs self._comments = comments self.types = [re.compile(x) for x in types] self.refs = [re.compile(x) for x in refs] self.comments = [re.compile(x) for x in comments] self.actions = actions self.statuses = statuses self.tags = tags self.ignore_deletes = ignore_deletes
def __init__(self, trigger, types=[], timespecs=[]): EventFilter.__init__(self, trigger) self._types = types self.types = [re.compile(x) for x in types] self.timespecs = timespecs