1name: "Stale issues and PRs"
2
3on:
4 schedule:
5 - cron: "0 2 * * *"
6 workflow_dispatch:
7
8permissions:
9 issues: write
10 pull-requests: write
11
12jobs:
13 stale:
14 runs-on: ubuntu-latest
15 steps:
16 - uses: actions/stale@v9
17 with:
18 repo-token: ${{ secrets.HOMEBREW_GITHUB_TOKEN }}
19 days-before-issue-stale: 30
20 days-before-issue-close: 14
21 days-before-pr-stale: 45
22 days-before-pr-close: 21
23 stale-issue-label: "stale"
24 stale-pr-label: "stale"
25 exempt-issue-labels: "pinned,security,help-wanted,good-first-issue,in-progress"
26 exempt-pr-labels: "pinned,security,in-progress,blocked"
27 stale-issue-message: >
28 This issue has had no activity for 30 days. It will be closed in 14 days unless updated.
29 Add a comment or remove the `stale` label to keep it open.
30 stale-pr-message: >
31 This PR has had no activity for 45 days. It will be closed in 21 days unless updated.
32 close-issue-message: >
33 Closing due to inactivity. Reopen if still relevant.
34 close-pr-message: >
35 Closing due to inactivity. Reopen if still relevant.
36 remove-stale-when-updated: true
37 operations-per-run: 100