[MIRROR] Fix null authors breaking test merge bot (#27974)

* Fix null authors breaking test merge bot (#83640)

These can be null if they're ghost

* Fix null authors breaking test merge bot

---------

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-06-04 14:25:58 +02:00
committed by GitHub
co-authored by Mothblocks
parent 8352821a0b
commit 3c3320ae97
+1 -1
View File
@@ -76,7 +76,7 @@ export async function processTestMerges({ github, context }) {
const existingComment =
comments.repository.pullRequest.comments.nodes.find(
(comment) =>
comment.author.login === "github-actions" &&
comment.author?.login === "github-actions" &&
comment.body.startsWith(TEST_MERGE_COMMENT_HEADER)
);