Clean up
This commit is contained in:
parent
2521dbb244
commit
b8e29997c6
11
src/main.ts
11
src/main.ts
|
@ -66,16 +66,11 @@ async function processIssues(
|
||||||
if (exemptLabel && isLabeled(issue, exemptLabel)) {
|
if (exemptLabel && isLabeled(issue, exemptLabel)) {
|
||||||
continue;
|
continue;
|
||||||
} else if (isLabeled(issue, staleLabel)) {
|
} else if (isLabeled(issue, staleLabel)) {
|
||||||
if (args.daysBeforeClose < 0) {
|
if (args.daysBeforeClose >= 0 && wasLastUpdatedBefore(issue, args.daysBeforeClose)) {
|
||||||
|
operationsLeft -= await closeIssue(client, issue);
|
||||||
|
} else {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
if (wasLastUpdatedBefore(issue, args.daysBeforeClose)) {
|
|
||||||
operationsLeft -= await closeIssue(client, issue);
|
|
||||||
} else {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else if (wasLastUpdatedBefore(issue, args.daysBeforeStale)) {
|
} else if (wasLastUpdatedBefore(issue, args.daysBeforeStale)) {
|
||||||
operationsLeft -= await markStale(
|
operationsLeft -= await markStale(
|
||||||
client,
|
client,
|
||||||
|
|
Loading…
Reference in New Issue