mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-08-17 01:10:28 +03: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
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
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…
Reference in New Issue
Block a user