def getRequireFilters(self, config): f = GithubRefFilter( connection_name=self.connection.connection_name, statuses=to_list(config.get('status')), required_reviews=to_list(config.get('review')), open=config.get('open'), current_patchset=config.get('current-patchset'), labels=to_list(config.get('label')), ) return [f]
def getRejectFilters(self, config): f = GithubRefFilter( connection_name=self.connection.connection_name, reject_reviews=to_list(config.get('review')), reject_labels=to_list(config.get('label')), reject_statuses=to_list(config.get('status')), reject_open=config.get('open'), reject_merged=config.get('merged'), reject_current_patchset=config.get('current-patchset'), ) return [f]
def getRejectFilters(self, config): f = GithubRefFilter( connection_name=self.connection.connection_name, reject_reviews=to_list(config.get('review')) ) return [f]