Skip to content

Commit 1c8bc70

Browse files
committed
check number of source lines changed before releasing
1 parent 9570493 commit 1c8bc70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/release.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ def recent_changes_to_src(last_version):
1111
stdout = check_output(["git", "log", "{}..HEAD".format(last_version), "--name-only", "--pretty=format: master"])
1212
stdout = stdout.decode("utf-8")
1313
lines = stdout.splitlines()
14-
src_lines = filter(lambda l: l.startswith("src"), lines)
14+
src_lines = list(filter(lambda l: l.startswith("src"), lines))
15+
print(f"{len(src_lines)} src files changed since {last_version}")
1516
return src_lines
1617

1718

0 commit comments

Comments
 (0)