Skip to content

Commit

Permalink
[MIRROR] Fix null authors breaking test merge bot (#2812)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: NovaBot13 <[email protected]>
  • Loading branch information
3 people authored and StealsThePRs committed Jun 3, 2024
1 parent a5b5c24 commit 726d125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/test_merge_bot/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);

Expand Down

0 comments on commit 726d125

Please sign in to comment.