|
| 1 | +name: "Lifecycle: Mark and close stale issues" |
| 2 | + |
| 3 | +on: |
| 4 | + schedule: |
| 5 | + - cron: "0 2 * * *" # Run every day at 02:00 UTC |
| 6 | + workflow_dispatch: |
| 7 | + |
| 8 | +permissions: |
| 9 | + issues: write |
| 10 | + pull-requests: write |
| 11 | + contents: read |
| 12 | + |
| 13 | +jobs: |
| 14 | + stale: |
| 15 | + runs-on: ubuntu-latest |
| 16 | + steps: |
| 17 | + - uses: actions/stale@v10 |
| 18 | + with: |
| 19 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 20 | + |
| 21 | + # --- Issue configuration --- |
| 22 | + stale-issue-label: "lifecycle/stale" |
| 23 | + exempt-issue-labels: "lifecycle/frozen" |
| 24 | + remove-issue-stale-when-updated: true |
| 25 | + days-before-issue-stale: 180 |
| 26 | + days-before-issue-close: 7 |
| 27 | + stale-issue-message: > |
| 28 | + This issue has been automatically marked as stale due to 180 days of inactivity. |
| 29 | +
|
| 30 | + If this issue is still relevant, please add a comment to keep it open. |
| 31 | +
|
| 32 | + Otherwise, it will be closed after 7 more days of inactivity. |
| 33 | +
|
| 34 | + Moderators: Add the `lifecycle/frozen` label to exempt this issue from the stale process. |
| 35 | + close-issue-message: > |
| 36 | + Closing this issue as it remained inactive after being marked `lifecycle/stale`. |
| 37 | +
|
| 38 | + # --- PR configuration --- |
| 39 | + stale-pr-label: "lifecycle/stale" |
| 40 | + exempt-pr-labels: "lifecycle/frozen" |
| 41 | + remove-pr-stale-when-updated: true |
| 42 | + exempt-draft-pr: false |
| 43 | + days-before-pr-stale: 180 |
| 44 | + days-before-pr-close: 7 |
| 45 | + stale-pr-message: > |
| 46 | + This pull request has been automatically marked as stale due to 180 days of inactivity. |
| 47 | +
|
| 48 | + Please update it or comment if you intend to continue working on it. |
| 49 | +
|
| 50 | + It will be closed after 7 more days of inactivity. |
| 51 | +
|
| 52 | + Moderators: Add the `lifecycle/frozen` label to exempt this PR from the stale process. |
| 53 | + close-pr-message: > |
| 54 | + Closing this pull request as it remained inactive after being marked `lifecycle/stale`. |
| 55 | +
|
| 56 | + # --- Shared settings --- |
| 57 | + labels-to-remove-when-unstale: "lifecycle/stale" |
| 58 | + sort-by: "created" |
| 59 | + start-date: "2025-11-03T00:24:55Z" |
| 60 | + operations-per-run: 100 |
0 commit comments