mirror of
https://github.com/actions/stale.git
synced 2025-12-17 00:56:55 +00:00
Add option to not close stale
This commit is contained in:
11
src/main.ts
11
src/main.ts
@@ -66,11 +66,16 @@ async function processIssues(
|
||||
if (exemptLabel && isLabeled(issue, exemptLabel)) {
|
||||
continue;
|
||||
} else if (isLabeled(issue, staleLabel)) {
|
||||
if (wasLastUpdatedBefore(issue, args.daysBeforeClose)) {
|
||||
operationsLeft -= await closeIssue(client, issue);
|
||||
} else {
|
||||
if (args.daysBeforeClose < 0) {
|
||||
continue;
|
||||
}
|
||||
else {
|
||||
if (wasLastUpdatedBefore(issue, args.daysBeforeClose)) {
|
||||
operationsLeft -= await closeIssue(client, issue);
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
} else if (wasLastUpdatedBefore(issue, args.daysBeforeStale)) {
|
||||
operationsLeft -= await markStale(
|
||||
client,
|
||||
|
||||
Reference in New Issue
Block a user