mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-07 17:04:59 +00:00
Handle missing login in changelog generate script (#1823)
This commit is contained in:
parent
7703fd0d31
commit
4e392f5c07
1 changed files with 3 additions and 2 deletions
|
@ -28,7 +28,8 @@ def print_pulls(repo_name, title, pulls):
|
||||||
print()
|
print()
|
||||||
for (pull, commit) in pulls:
|
for (pull, commit) in pulls:
|
||||||
url = "https://github.com/{}/pull/{}".format(repo_name, pull.number)
|
url = "https://github.com/{}/pull/{}".format(repo_name, pull.number)
|
||||||
print("- {} [#{}]({}) ({})".format(pull.title, pull.number, url, commit.author.login))
|
author = f"({commit.author.login})" if commit.author else ''
|
||||||
|
print("- {} [#{}]({}) {}".format(pull.title, pull.number, url, author))
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
|
||||||
|
@ -161,4 +162,4 @@ def cli(args=None):
|
||||||
generate_changelog(repo, project, args.tag1, args.tag2, args.version)
|
generate_changelog(repo, project, args.tag1, args.tag2, args.version)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
cli()
|
cli()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue