File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -241,10 +241,19 @@ jobs:
241
241
owner: context.repo.owner,
242
242
repo: 'core'
243
243
})
244
+
245
+ const triggerComments = comments.filter(comment =>
246
+ comment.body.includes('/ecosystem-ci run')
247
+ )
248
+ // note: issue comments are ordered by ascending ID.
249
+ // delete the previous ecosystem-ci trigger comments
250
+ // just keep the latest one
251
+ triggerComments.pop()
252
+
244
253
const workflowComments = comments.filter(comment =>
245
254
comment.body.includes('Ran ecosystem CI:') || comment.body.includes('Triggered ecosystem CI:')
246
255
)
247
- for (const comment of workflowComments) {
256
+ for (const comment of [... workflowComments, ...triggerComments] ) {
248
257
await github.rest.issues.deleteComment({
249
258
owner: context.repo.owner,
250
259
repo: 'core',
You can’t perform that action at this time.
0 commit comments