From ccda44cac500d43a7fcf61130d2fc609e15a5aac Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Thu, 17 Mar 2022 18:28:50 +0000 Subject: [PATCH] Handle missing author information when generating changelog --- .github/update-release-branch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/update-release-branch.py b/.github/update-release-branch.py index 83a003de6..ec8bdf75b 100644 --- a/.github/update-release-branch.py +++ b/.github/update-release-branch.py @@ -70,7 +70,8 @@ def open_pr(repo, all_commits, short_main_sha, new_branch_name, source_branch, t body.append('') body.append('Contains the following commits not from a pull request:') for commit in commits_without_pull_requests: - body.append('- ' + commit.sha + ' - ' + get_truncated_commit_message(commit) + ' (@' + commit.author.login + ')') + author_description = ' (@' + commit.author.login + ')' if commit.author is not None else '' + body.append('- ' + commit.sha + ' - ' + get_truncated_commit_message(commit) + author_description) body.append('') body.append('Please review the following:')