You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log('Issue body is empty. Closing issue due to invalid format.');
@@ -216,6 +231,20 @@ jobs:
216
231
});
217
232
}
218
233
234
+
// 隐藏之前的机器人警告信息
235
+
if (botComments.length > 0) {
236
+
for (const comment of botComments) {
237
+
// 更新评论,在前面添加 Resolved 标记
238
+
const updatedBody = `~~${comment.body}~~\n\n**Resolved: 此问题已解决,用户现在使用了支持的版本** / **This issue has been resolved, the user is now using a supported version**`;
239
+
await github.rest.issues.updateComment({
240
+
owner: context.repo.owner,
241
+
repo: context.repo.repo,
242
+
comment_id: comment.id,
243
+
body: updatedBody
244
+
});
245
+
}
246
+
}
247
+
219
248
return;
220
249
} else {
221
250
console.log('Version is outside allowed range. Closing issue.');
0 commit comments