File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -9590,7 +9590,9 @@ const missingAuthors = commits.data.filter((commit) => !commit.author?.login);
9590
9590
if (missingAuthors.length > 0) {
9591
9591
throw new Error(`PR contains commits without associated GitHub users`);
9592
9592
}
9593
- const authors = Array.from(new Set(commits.data.map((commit) => commit.author.login))).sort();
9593
+ const authors = Array.from(new Set(commits.data
9594
+ .filter((commit) => commit.author.type.toLowerCase() !== "bot")
9595
+ .map((commit) => commit.author.login))).sort();
9594
9596
const fileContentResponse = await octokit.rest.repos.getContent({
9595
9597
owner: _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.payload.pull_request.head.repo.owner.login,
9596
9598
repo: _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.payload.pull_request.head.repo.name,
Original file line number Diff line number Diff line change @@ -25,7 +25,11 @@ if (missingAuthors.length > 0) {
25
25
}
26
26
27
27
const authors = Array . from (
28
- new Set ( commits . data . map ( ( commit ) => commit . author ! . login ) )
28
+ new Set (
29
+ commits . data
30
+ . filter ( ( commit ) => commit . author ! . type . toLowerCase ( ) !== "bot" )
31
+ . map ( ( commit ) => commit . author ! . login )
32
+ )
29
33
) . sort ( ) ;
30
34
31
35
const fileContentResponse = await octokit . rest . repos . getContent ( {
You can’t perform that action at this time.
0 commit comments