def wrapped(): if if_changed and tools.IS_PULL_REQUEST: if not tools.has_changes(if_changed + BUILD_FILES): print('Skipping task due to no changes in %s' % (', '.join(if_changed), )) return fn()
def wrapped(*args, **kwargs): if if_changed and tools.IS_PULL_REQUEST: if not tools.has_changes(if_changed + BUILD_FILES): print("Skipping task due to no changes in %s" % (", ".join(if_changed), )) return fn(*args, **kwargs)
def wrapped(*args, **kwargs): if if_changed and tools.IS_PULL_REQUEST: if not tools.has_changes(if_changed + BUILD_FILES): print('Skipping task due to no changes in %s' % ( ', '.join(if_changed), )) return fn(*args, **kwargs)
def has_source_changes(): """Returns True if any source files have changed.""" return tools.has_changes([RUST_SRC, RUBY_SRC]) or cr.has_release()
def has_source_changes(): """Returns True if any source files have changed.""" return tools.has_changes([SRC])
def has_source_changes(): return tools.has_changes([PYTHON_SRC])