@@ -1049,14 +1049,17 @@ jobs:
1049
1049
}
1050
1050
1051
1051
const comments = await github.paginate(github.rest.issues.listComments, { owner, repo, issue_number })
1052
- const releaseComments = comments.filter(c => c.user.login === 'github-actions[bot]' && c.body.includes('Release is at'))
1052
+ .then(cs => cs.map(c => ({ id: c.id, login: c.user.login, body: c.body })))
1053
+ console.log(\`Found comments: \${JSON.stringify(comments, null, 2)}\`)
1054
+ const releaseComments = comments.filter(c => c.login === 'github-actions[bot]' && c.body.includes('Release is at'))
1053
1055
1054
1056
for (const comment of releaseComments) {
1057
+ console.log(\`Release comment: \${JSON.stringify(comment, null, 2)}\`)
1055
1058
await github.rest.issues.deleteComment({ owner, repo, comment_id: comment.id })
1056
1059
}
1057
1060
1058
1061
const runUrl = \`https://github.com/\${owner}/\${repo}/actions/runs/\${runId}\`
1059
- await github.rest.issues.createComment({
1062
+ await github.rest.issues.createComment({
1060
1063
owner,
1061
1064
repo,
1062
1065
issue_number,
@@ -2631,14 +2634,17 @@ jobs:
2631
2634
}
2632
2635
2633
2636
const comments = await github.paginate(github.rest.issues.listComments, { owner, repo, issue_number })
2634
- const releaseComments = comments.filter(c => c.user.login === 'github-actions[bot]' && c.body.includes('Release is at'))
2637
+ .then(cs => cs.map(c => ({ id: c.id, login: c.user.login, body: c.body })))
2638
+ console.log(\`Found comments: \${JSON.stringify(comments, null, 2)}\`)
2639
+ const releaseComments = comments.filter(c => c.login === 'github-actions[bot]' && c.body.includes('Release is at'))
2635
2640
2636
2641
for (const comment of releaseComments) {
2642
+ console.log(\`Release comment: \${JSON.stringify(comment, null, 2)}\`)
2637
2643
await github.rest.issues.deleteComment({ owner, repo, comment_id: comment.id })
2638
2644
}
2639
2645
2640
2646
const runUrl = \`https://github.com/\${owner}/\${repo}/actions/runs/\${runId}\`
2641
- await github.rest.issues.createComment({
2647
+ await github.rest.issues.createComment({
2642
2648
owner,
2643
2649
repo,
2644
2650
issue_number,
@@ -4056,14 +4062,17 @@ jobs:
4056
4062
}
4057
4063
4058
4064
const comments = await github.paginate(github.rest.issues.listComments, { owner, repo, issue_number })
4059
- const releaseComments = comments.filter(c => c.user.login === 'github-actions[bot]' && c.body.includes('Release is at'))
4065
+ .then(cs => cs.map(c => ({ id: c.id, login: c.user.login, body: c.body })))
4066
+ console.log(\`Found comments: \${JSON.stringify(comments, null, 2)}\`)
4067
+ const releaseComments = comments.filter(c => c.login === 'github-actions[bot]' && c.body.includes('Release is at'))
4060
4068
4061
4069
for (const comment of releaseComments) {
4070
+ console.log(\`Release comment: \${JSON.stringify(comment, null, 2)}\`)
4062
4071
await github.rest.issues.deleteComment({ owner, repo, comment_id: comment.id })
4063
4072
}
4064
4073
4065
4074
const runUrl = \`https://github.com/\${owner}/\${repo}/actions/runs/\${runId}\`
4066
- await github.rest.issues.createComment({
4075
+ await github.rest.issues.createComment({
4067
4076
owner,
4068
4077
repo,
4069
4078
issue_number,
0 commit comments