Skip to content

Commit 94feef8

Browse files
committed
gitlab_release_notes/generate.py: Only print-out release notes if there were any
I.e. suppress printing out an empty line on repos with no changes when the --quiet cmdline option was given.
1 parent 3463e46 commit 94feef8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitlab_release_notes/generate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ def main():
107107
quiet=args.quiet,
108108
private_token=args.private_token,
109109
)
110-
print(notes)
110+
if notes:
111+
print(notes)
111112

112113
if __name__ == "__main__":
113114
main()

0 commit comments

Comments
 (0)