mirror of
https://github.com/actions/stale.git
synced 2025-12-24 17:38:17 +00:00
Compare commits
1 Commits
dont-close
...
add-syntax
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c2f51ac751 |
@@ -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.
|
||||
|
||||
Basic:
|
||||
```
|
||||
```yaml
|
||||
name: "Close stale issues"
|
||||
on:
|
||||
schedule:
|
||||
@@ -25,7 +25,7 @@ jobs:
|
||||
```
|
||||
|
||||
Configure stale timeouts:
|
||||
```
|
||||
```yaml
|
||||
name: "Close stale issues"
|
||||
on:
|
||||
schedule:
|
||||
@@ -44,7 +44,7 @@ jobs:
|
||||
```
|
||||
|
||||
Configure labels:
|
||||
```
|
||||
```yaml
|
||||
name: "Close stale issues"
|
||||
on:
|
||||
schedule:
|
||||
|
||||
@@ -13,7 +13,7 @@ inputs:
|
||||
description: 'The number of days old an issue can be before marking it stale'
|
||||
default: 60
|
||||
days-before-close:
|
||||
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.'
|
||||
description: 'The number of days to wait to close an issue or pull request after it being marked stale'
|
||||
default: 7
|
||||
stale-issue-label:
|
||||
description: 'The label to apply when an issue is stale'
|
||||
|
||||
@@ -66,7 +66,7 @@ async function processIssues(
|
||||
if (exemptLabel && isLabeled(issue, exemptLabel)) {
|
||||
continue;
|
||||
} else if (isLabeled(issue, staleLabel)) {
|
||||
if (args.daysBeforeClose >= 0 && wasLastUpdatedBefore(issue, args.daysBeforeClose)) {
|
||||
if (wasLastUpdatedBefore(issue, args.daysBeforeClose)) {
|
||||
operationsLeft -= await closeIssue(client, issue);
|
||||
} else {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user