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.
This commit is contained in:
parent
e284efba72
commit
d16268b273
1 changed files with 1 additions and 1 deletions
2
.github/update-release-branch.py
vendored
2
.github/update-release-branch.py
vendored
|
|
@ -122,7 +122,7 @@ def get_commit_difference(repo):
|
||||||
|
|
||||||
# Is the given commit the automatic merge commit from when merging a PR
|
# Is the given commit the automatic merge commit from when merging a PR
|
||||||
def is_pr_merge_commit(commit):
|
def is_pr_merge_commit(commit):
|
||||||
return commit.committer.login == 'web-flow' and len(commit.parents) > 1
|
return commit.committer is not None and commit.committer.login == 'web-flow' and len(commit.parents) > 1
|
||||||
|
|
||||||
# Gets a copy of the commit message that should display nicely
|
# Gets a copy of the commit message that should display nicely
|
||||||
def get_truncated_commit_message(commit):
|
def get_truncated_commit_message(commit):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue