From 726d1259f651753955116edfb6696d590ddbf26d Mon Sep 17 00:00:00 2001 From: NovaBot <154629622+NovaBot13@users.noreply.github.com> Date: Mon, 3 Jun 2024 03:13:56 -0400 Subject: [PATCH] [MIRROR] Fix null authors breaking test merge bot (#2812) * 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> Co-authored-by: NovaBot13 --- tools/test_merge_bot/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test_merge_bot/main.js b/tools/test_merge_bot/main.js index ae7d4c7a98d..3fde4d6c542 100644 --- a/tools/test_merge_bot/main.js +++ b/tools/test_merge_bot/main.js @@ -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) );