From 7c38cb22cb503f1baa9134bc46faab1de9e2237e Mon Sep 17 00:00:00 2001 From: Mothblocks <35135081+Mothblocks@users.noreply.github.com> Date: Sun, 2 Jun 2024 21:39:34 -0700 Subject: [PATCH] Fix null authors breaking test merge bot (#83640) These can be null if they're ghost --- 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 ae7d4c7a98d90..3fde4d6c54297 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) );