Skip to content

Commit

Permalink
Merge pull request #6 from AtmegaBuzz/patch-1
Browse files Browse the repository at this point in the history
remove issue assignee after 5 days of assigning
  • Loading branch information
DonnieBLT authored Jan 27, 2024
2 parents b93487c + 50a8d70 commit c5e398c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const run = async () => {
}

} else {
console.log('removing assignees greater than 3 days');
console.log('removing assignees greater than 5 days');
var last_event = new Object()
last_event.issue = new Object()
last_event.issue.number = "";
Expand Down Expand Up @@ -94,7 +94,7 @@ const run = async () => {
(Difference_In_Time / (1000 * 3600 * 24)).toString() + " days",
);

if (Difference_In_Time / (1000 * 3600 * 24) > 3) {
if ((Difference_In_Time / (1000 * 3600 * 24)) > 5) {
console.log('unassigning ' + event.issue.assignee.login + " from " + event.issue.number);

const assignees = event.issue.assignee.login.split(',').map((assigneeName) => assigneeName.trim());
Expand Down

0 comments on commit c5e398c

Please sign in to comment.