mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:27:43 +00:00
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
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
Add a link
Reference in a new issue