|
| 1 | +# This workflow labels stale issues and PRs after 30 days of inactivity. |
| 2 | +# Stale PRs are closed after 1 week of inactivity after labeled stale. |
| 3 | +# See for more info: https://github.com/actions/stale |
| 4 | + |
| 5 | +name: Mark Stale Contributions |
| 6 | + |
| 7 | +on: |
| 8 | + # Enable manual run from the Actions tab so workflow can be run at any time |
| 9 | + workflow_dispatch: |
| 10 | + # Scheduled to run at 12:00 on every Monday |
| 11 | + schedule: |
| 12 | + - cron: "0 0 * * MON" |
| 13 | + |
| 14 | +jobs: |
| 15 | + stale: |
| 16 | + runs-on: ubuntu-latest |
| 17 | + permissions: |
| 18 | + issues: write |
| 19 | + pull-requests: write |
| 20 | + |
| 21 | + steps: |
| 22 | + - uses: actions/stale@v9 |
| 23 | + with: |
| 24 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 25 | + stale-label: "stale" |
| 26 | + days-before-stale: 30 |
| 27 | + # disables closing issues |
| 28 | + days-before-issue-close: -1 |
| 29 | + # close pr after 1 week no updates after stale warning |
| 30 | + days-before-pr-close: 7 |
| 31 | + # only scan assigned issues |
| 32 | + include-only-assigned: true |
| 33 | + # ignore issues assigned to staff and bots |
| 34 | + exempt-assignees: "kyleecodes, swetha-charles, eleanorreem, annarhughes, tarebyte, dependabot[bot], dependabot, github-actions[bot], github-actions" |
| 35 | + # disable removing stale label due to irrelevant activity (like branch updates) |
| 36 | + remove-stale-when-updated: false |
| 37 | + # exempt dependabot prs from going stale |
| 38 | + exempt-pr-labels: dependencies |
| 39 | + # disable counting irrelevant activity (branch updates) towards day counter on prs. |
| 40 | + ignore-pr-updates: true |
| 41 | + stale-pr-message: "As per Chayn policy, after 30 days of inactivity, we will close this PR." |
| 42 | + close-pr-message: "This PR has been closed due to inactivity." |
| 43 | + stale-issue-message: "As per Chayn policy, after 30 days of inactivity, we will be unassigning this issue. Please comment to stay assigned." |
0 commit comments