Skip to content

Commit d16268b

Browse files
committed
Fix update-release-branch-fix.py
This change ensures that the the script can handle commits with no committer in them. This will happen for some commits that are auto-generated during PRs.
1 parent e284efb commit d16268b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/update-release-branch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def get_commit_difference(repo):
122122

123123
# Is the given commit the automatic merge commit from when merging a PR
124124
def is_pr_merge_commit(commit):
125-
return commit.committer.login == 'web-flow' and len(commit.parents) > 1
125+
return commit.committer is not None and commit.committer.login == 'web-flow' and len(commit.parents) > 1
126126

127127
# Gets a copy of the commit message that should display nicely
128128
def get_truncated_commit_message(commit):

0 commit comments

Comments
 (0)