From d81e44f16c582e912f6959b1a0d9832de6bc4475 Mon Sep 17 00:00:00 2001 From: Holly Gong <39108850+hogo6002@users.noreply.github.com> Date: Thu, 14 Sep 2023 12:59:14 +1000 Subject: [PATCH] fix PR helper when commits have no author. (#10959) 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) https://github.com/google/oss-fuzz/issues/10955 --- infra/pr_helper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/infra/pr_helper.py b/infra/pr_helper.py index da5e6062d..4d93b24a5 100644 --- a/infra/pr_helper.py +++ b/infra/pr_helper.py @@ -243,6 +243,9 @@ class GithubHandler: 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: