Skip to content

Commit 84dc498

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 84dc498

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/update-release-branch.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import datetime
99
import os
1010

11+
import inspect
12+
1113
EMPTY_CHANGELOG = """# CodeQL Action and CodeQL Runner Changelog
1214
1315
## [UNRELEASED]
@@ -122,7 +124,7 @@ def get_commit_difference(repo):
122124

123125
# Is the given commit the automatic merge commit from when merging a PR
124126
def is_pr_merge_commit(commit):
125-
return commit.committer.login == 'web-flow' and len(commit.parents) > 1
127+
return commit.committer != None and commit.committer.login == 'web-flow' and len(commit.parents) > 1
126128

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

0 commit comments

Comments
 (0)