CI: Add GitHub author presence check in commit linter

If GitHub is unable to match a commit's author to a GitHub user, the
`.author` object is set to `null` in the API's response.
This commit is contained in:
Jelle Raaijmakers 2023-01-20 00:32:02 +01:00 committed by Linus Groh
parent be8907e6bb
commit 100c8f9bcf

View file

@ -66,7 +66,7 @@ jobs:
const errors = [];
for (const { sha, commit: { message }, author } of commits) {
if (excludedBotIds.includes(author.id)) {
if (author !== null && excludedBotIds.includes(author.id)) {
continue;
}
const commitErrors = [];