|
| 1 | +# See https://github.com/actions/stale |
| 2 | + |
| 3 | +name: Stale issues and pull-requests |
| 4 | +on: |
| 5 | + schedule: |
| 6 | + - cron: 0 0 * * * |
| 7 | + |
| 8 | +jobs: |
| 9 | + stale: |
| 10 | + runs-on: ubuntu-latest |
| 11 | + steps: |
| 12 | + |
| 13 | + with: |
| 14 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 15 | + |
| 16 | + # Idle number of days before marking issues/prs stale. |
| 17 | + days-before-stale: 500 |
| 18 | + |
| 19 | + # Idle number of days before closing stale issues/prs. |
| 20 | + days-before-close: 28 |
| 21 | + |
| 22 | + # Comment on the staled issues. |
| 23 | + stale-issue-message: | |
| 24 | + In order to maintain a backlog of relevant issues, we automatically label them as stale after 500 days of inactivity. |
| 25 | +
|
| 26 | + If this issue is still important to you, then please comment on this issue and the stale label will be removed. |
| 27 | +
|
| 28 | + Otherwise this issue will be automatically closed in 28 days time. |
| 29 | +
|
| 30 | + # Comment on the staled prs. |
| 31 | + stale-pr-message: | |
| 32 | + In order to maintain a backlog of relevant PRs, we automatically label them as stale after 500 days of inactivity. |
| 33 | +
|
| 34 | + If this PR is still important to you, then please comment on this PR and the stale label will be removed. |
| 35 | +
|
| 36 | + Otherwise this PR will be automatically closed in 28 days time. |
| 37 | +
|
| 38 | + # Comment on the staled issues while closed. |
| 39 | + close-issue-message: | |
| 40 | + This stale issue has been automatically closed due to a lack of community activity. |
| 41 | + |
| 42 | + If you still care about this issue, then please either: |
| 43 | + * Re-open this issue, if you have sufficient permissions, or |
| 44 | + * Add a comment pinging `@SciTools/iris-devs` who will re-open on your behalf. |
| 45 | +
|
| 46 | + # Comment on the staled prs while closed. |
| 47 | + close-pr-message: | |
| 48 | + This stale PR has been automatically closed due to a lack of community activity. |
| 49 | + |
| 50 | + If you still care about this PR, then please either: |
| 51 | + * Re-open this PR, if you have sufficient permissions, or |
| 52 | + * Add a comment pinging `@SciTools/iris-devs` who will re-open on your behalf. |
| 53 | +
|
| 54 | + # Label to apply on staled issues. |
| 55 | + stale-issue-label: Stale |
| 56 | + |
| 57 | + # Label to apply on staled prs. |
| 58 | + stale-pr-label: Stale |
| 59 | + |
| 60 | + # Labels on issues exempted from stale. |
| 61 | + exempt-issue-labels: | |
| 62 | + "Status: Blocked,Status: Decision Required,Peloton 🚴♂️,Good First Issue" |
| 63 | +
|
| 64 | + # Labels on prs exempted from stale. |
| 65 | + exempt-pr-labels: | |
| 66 | + "Status: Blocked,Status: Decision Required,Peloton 🚴♂️,Good First Issue" |
| 67 | +
|
| 68 | + # Max number of operations per run. |
| 69 | + operations-per-run: 300 |
| 70 | + |
| 71 | + # Remove stale label from issues/prs on updates/comments. |
| 72 | + remove-stale-when-updated: true |
| 73 | + |
| 74 | + # Order to get issues/PRs. |
| 75 | + ascending: true |
| 76 | + |
| 77 | + # Exempt all issues/prs with milestones from stale. |
| 78 | + exempt-all-milestones: true |
0 commit comments