|
| 1 | +name: Update Stale Issues |
| 2 | +on: |
| 3 | + schedule: |
| 4 | + # Run 1:24AM every night |
| 5 | + - cron: '24 1 * * *' |
| 6 | + workflow_dispatch: |
| 7 | +permissions: |
| 8 | + issues: write |
| 9 | +jobs: |
| 10 | + stale: |
| 11 | + runs-on: ubuntu-latest |
| 12 | + steps: |
| 13 | + - uses: actions/stale@v6 |
| 14 | + with: |
| 15 | + # Idle number of days before marking issues stale |
| 16 | + days-before-issue-stale: 365 |
| 17 | + |
| 18 | + # Never mark PRs as stale |
| 19 | + days-before-pr-stale: -1 |
| 20 | + |
| 21 | + # Idle number of days before closing stale issues |
| 22 | + days-before-issue-close: 30 |
| 23 | + |
| 24 | + # Never close PRs |
| 25 | + days-before-pr-close: -1 |
| 26 | + |
| 27 | + # Ignore issues with an assignee |
| 28 | + exempt-all-issue-assignees: true |
| 29 | + |
| 30 | + # Label to use when marking as stale |
| 31 | + stale-issue-label: stale-needs-update |
| 32 | + |
| 33 | + # Label to use when issue is automatically closed |
| 34 | + close-issue-label: auto-closed |
| 35 | + |
| 36 | + stale-issue-message: > |
| 37 | + We've made a lot of changes to Josepy since this issue was opened. If you |
| 38 | + still have this issue with an up-to-date version of Josepy, can you please |
| 39 | + add a comment letting us know? This helps us to better see what issues are |
| 40 | + still affecting our users. If there is no activity in the next 30 days, this |
| 41 | + issue will be automatically closed. |
| 42 | +
|
| 43 | + close-issue-message: > |
| 44 | + This issue has been closed due to lack of activity, but if you think it |
| 45 | + should be reopened, please open a new issue with a link to this one and we'll |
| 46 | + take a look. |
| 47 | +
|
| 48 | + # Limit the number of actions per run. As of writing this, GitHub's |
| 49 | + # rate limit is 1000 requests per hour so we're still a ways off. See |
| 50 | + # https://docs.github.com/en/rest/overview/resources-in-the-rest-api?apiVersion=2022-11-28#rate-limits-for-requests-from-github-actions. |
| 51 | + operations-per-run: 180 |
0 commit comments