Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
thollander committed Aug 6, 2023
1 parent acc95a6 commit 9fabc9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cleanup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9566,9 +9566,11 @@ async function run() {
...context.repo,
issue_number,
})) {
console.log(...comments.filter((comment) => comment?.body?.includes(comment_tag_pattern)));
comments.push(...comments.filter((comment) => comment?.body?.includes(comment_tag_pattern)));
}
if (comments.length > 0) {
console.log('comments', comments);
for (const comment of comments) {
core.info(`Deleting comment ${comment.id}.`);
await octokit.rest.issues.deleteComment({
Expand Down
2 changes: 2 additions & 0 deletions src/cleanup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ async function run() {
...context.repo,
issue_number,
})) {
console.log(...comments.filter((comment) => comment?.body?.includes(comment_tag_pattern)));
comments.push(...comments.filter((comment) => comment?.body?.includes(comment_tag_pattern)));
}

if (comments.length > 0) {
console.log('comments', comments)
for (const comment of comments) {
core.info(`Deleting comment ${comment.id}.`);
await octokit.rest.issues.deleteComment({
Expand Down

0 comments on commit 9fabc9a

Please sign in to comment.