Skip to content

Commit

Permalink
Update add-label.js
Browse files Browse the repository at this point in the history
  • Loading branch information
t-will-gillis authored Oct 4, 2024
1 parent 83686b9 commit a68ca2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function isTimelineOutdated(timeline, issueNum, assignees) { // assignees is an
}

// If this event is more than 7 days old AND this event is a comment by the GitHub Actions Bot, then hide the comment as outdated.
if (isMomentRecent(eventObj.created_at, expiredDayCutoffTime) && (!isMomentRecent(eventObj.created_at, sevenDayCutoffTime) && eventType === 'commented' && isCommentByBot(eventObj)) {
if (isMomentRecent(eventObj.created_at, expiredDayCutoffTime) && !isMomentRecent(eventObj.created_at, sevenDayCutoffTime) && eventType === 'commented' && isCommentByBot(eventObj)) {
console.log(`Comment ${eventObj.node_id} is outdated (i.e. > 7 days old) and will be minimized.`);
commentsToBeMinimized.push(eventObj.node_id); // retain node id so its associated comment can be minimized later
}
Expand Down

0 comments on commit a68ca2e

Please sign in to comment.