Skip to content

Commit 1fe4788

Browse files
committed
Fix
1 parent c5a9dd3 commit 1fe4788

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ if (body) {
207207
.toSorted((a, b) => compareDate(new Date(a.created_at), new Date(b.created_at)));
208208
if (sorted_comments.length > 0) {
209209
const latest_comment = sorted_comments[sorted_comments.length - 1];
210-
if (latest_comment.body?.includes("warning")) {
210+
211+
if (body.includes("warning") || latest_comment.body?.includes("warning")) {
211212
// minimize latest comment
212213
await octokit.graphql(`
213214
mutation {

0 commit comments

Comments
 (0)