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) );