We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5a9dd3 commit 1fe4788Copy full SHA for 1fe4788
1 file changed
src/index.ts
@@ -207,7 +207,8 @@ if (body) {
207
.toSorted((a, b) => compareDate(new Date(a.created_at), new Date(b.created_at)));
208
if (sorted_comments.length > 0) {
209
const latest_comment = sorted_comments[sorted_comments.length - 1];
210
- if (latest_comment.body?.includes("warning")) {
+
211
+ if (body.includes("warning") || latest_comment.body?.includes("warning")) {
212
// minimize latest comment
213
await octokit.graphql(`
214
mutation {
0 commit comments