Skip to content

Commit

Permalink
comment check
Browse files Browse the repository at this point in the history
  • Loading branch information
DE7924 committed Dec 12, 2024
1 parent 79cc90f commit c0d51e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/scripts/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ ${testingStr?.output}
repo: context.repo.repo,
});
const comment = comments.find((comment) => {
if (comment.body) comment.body.includes("PR Checks Complete");
if (comment.body != undefined)
comment.body.includes("PR Checks Complete");
});
if (comment) {
await ocotokit.rest.issues.updateComment({
Expand Down

0 comments on commit c0d51e9

Please sign in to comment.