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:
parent
be8907e6bb
commit
100c8f9bcf
Notes:
sideshowbarker
2024-07-17 04:10:16 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/100c8f9bcf Pull-request: https://github.com/SerenityOS/serenity/pull/17097
1 changed files with 1 additions and 1 deletions
2
.github/workflows/lintcommits.yml
vendored
2
.github/workflows/lintcommits.yml
vendored
|
@ -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 = [];
|
||||
|
|
Loading…
Add table
Reference in a new issue