Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
aweis89 committed Dec 2, 2023
1 parent 4b7a031 commit 4c89d25
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1826,7 +1826,11 @@ _Updated at ${new Date().toLocaleString('en-US', { timeZone: 'America/Los_Angele
});
// Delete stale comments
for (const comment of commentsResponse.data) {
core.info(`analyzing comment: ${comment.id}`);
core.info(`analyzing comment body: ${comment.body}`);
core.info(`looking for ${prefixHeader}`);
if ((_c = comment.body) === null || _c === void 0 ? void 0 : _c.includes(prefixHeader)) {
core.info(`deleting comment ${comment.id}`);
octokit.rest.issues.deleteComment({
owner,
repo,
Expand Down
4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,11 @@ _Updated at ${new Date().toLocaleString('en-US', { timeZone: 'America/Los_Angele

// Delete stale comments
for (const comment of commentsResponse.data) {
core.info(`analyzing comment: ${comment.id}`)
core.info(`analyzing comment body: ${comment.body}`)
core.info(`looking for ${prefixHeader}`)
if (comment.body?.includes(prefixHeader)) {
core.info(`deleting comment ${comment.id}`)
octokit.rest.issues.deleteComment({
owner,
repo,
Expand Down

0 comments on commit 4c89d25

Please sign in to comment.