mirror of
https://github.com/actions/stale.git
synced 2025-12-29 19:38:18 +00:00
Compare commits
2 Commits
ethomson/u
...
dont-close
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b8e29997c6 | ||
|
|
2521dbb244 |
@@ -1,9 +1,9 @@
|
|||||||
name: 'Close Stale Issues'
|
name: 'Close Stale Issues'
|
||||||
description: 'Close issues and pull requests with no recent activity'
|
description: 'Action to close stale issues'
|
||||||
author: 'GitHub'
|
author: 'GitHub'
|
||||||
inputs:
|
inputs:
|
||||||
repo-token:
|
repo-token:
|
||||||
description: 'Token for the repository. Can be passed in using {{ secrets.GITHUB_TOKEN }}'
|
description: 'Token for the repo. Can be passed in using {{ secrets.GITHUB_TOKEN }}'
|
||||||
required: true
|
required: true
|
||||||
stale-issue-message:
|
stale-issue-message:
|
||||||
description: 'The message to post on the issue when tagging it. If none provided, will not mark issues stale.'
|
description: 'The message to post on the issue when tagging it. If none provided, will not mark issues stale.'
|
||||||
@@ -13,7 +13,7 @@ inputs:
|
|||||||
description: 'The number of days old an issue can be before marking it stale'
|
description: 'The number of days old an issue can be before marking it stale'
|
||||||
default: 60
|
default: 60
|
||||||
days-before-close:
|
days-before-close:
|
||||||
description: 'The number of days to wait to close an issue or pull request after it being marked stale'
|
description: 'The number of days to wait to close an issue or pull request after it being marked stale. Set to -1 to never close stale issues.'
|
||||||
default: 7
|
default: 7
|
||||||
stale-issue-label:
|
stale-issue-label:
|
||||||
description: 'The label to apply when an issue is stale'
|
description: 'The label to apply when an issue is stale'
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ 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 (wasLastUpdatedBefore(issue, args.daysBeforeClose)) {
|
if (args.daysBeforeClose >= 0 && wasLastUpdatedBefore(issue, args.daysBeforeClose)) {
|
||||||
operationsLeft -= await closeIssue(client, issue);
|
operationsLeft -= await closeIssue(client, issue);
|
||||||
} else {
|
} else {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user