Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _old_decision_filter(task, parameters):
if task.kind == 'old-decision':
return True
return standard_filter(task, parameters)
def tag_filter(target_release_type, task, params):
release_type = task.attributes.get("release-type")
return standard_filter(task, params) and (release_type is None or release_type == target_release_type)