mirror of
https://github.com/actions/stale.git
synced 2025-12-28 19:18:16 +00:00
Compare commits
2 Commits
add-syntax
...
dont-close
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b8e29997c6 | ||
|
|
2521dbb244 |
@@ -7,7 +7,7 @@ Warns and then closes issues and PRs that have had no activity for a specified a
|
|||||||
See [action.yml](./action.yml) For comprehensive list of options.
|
See [action.yml](./action.yml) For comprehensive list of options.
|
||||||
|
|
||||||
Basic:
|
Basic:
|
||||||
```yaml
|
```
|
||||||
name: "Close stale issues"
|
name: "Close stale issues"
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
@@ -25,7 +25,7 @@ jobs:
|
|||||||
```
|
```
|
||||||
|
|
||||||
Configure stale timeouts:
|
Configure stale timeouts:
|
||||||
```yaml
|
```
|
||||||
name: "Close stale issues"
|
name: "Close stale issues"
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
@@ -44,7 +44,7 @@ jobs:
|
|||||||
```
|
```
|
||||||
|
|
||||||
Configure labels:
|
Configure labels:
|
||||||
```yaml
|
```
|
||||||
name: "Close stale issues"
|
name: "Close stale issues"
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
|
|||||||
@@ -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