Skip to content

Commit

Permalink
fix PR helper when commits have no author. (#10959)
Browse files Browse the repository at this point in the history
PR helper fails when author information is null. Adding a check before
get login name.

![image](https://github.com/google/oss-fuzz/assets/39108850/f4f3aaa8-3edb-4745-93e1-c6da047d0b7b)
#10955
  • Loading branch information
hogo6002 authored Sep 14, 2023
1 parent 868a94f commit d81e44f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions infra/pr_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ def get_past_contributors(self, project_path):
if i >= COMMITS_LIMIT:
break

if not commit['author'] or not commit['commit']:
continue

login = commit['author']['login']
verified = commit['commit']['verification']['verified']
if login in self._maintainers:
Expand Down

0 comments on commit d81e44f

Please sign in to comment.