|
| 1 | +name: "Stale Issue Triage" |
| 2 | + |
| 3 | +on: |
| 4 | + schedule: |
| 5 | + - cron: '0 9 * * 1' |
| 6 | + workflow_dispatch: |
| 7 | + inputs: |
| 8 | + debug_only: |
| 9 | + description: 'Dry-run mode (no writes)' |
| 10 | + required: false |
| 11 | + default: 'false' |
| 12 | + type: choice |
| 13 | + options: |
| 14 | + - 'false' |
| 15 | + - 'true' |
| 16 | + pull_request: |
| 17 | + paths: |
| 18 | + - .github/workflows/stale.yml |
| 19 | + types: |
| 20 | + - opened |
| 21 | + - synchronize |
| 22 | + |
| 23 | +permissions: |
| 24 | + issues: write |
| 25 | + pull-requests: write |
| 26 | + |
| 27 | +jobs: |
| 28 | + stale: |
| 29 | + runs-on: ubuntu-latest |
| 30 | + steps: |
| 31 | + - uses: actions/stale@v10 |
| 32 | + with: |
| 33 | + days-before-issue-stale: 180 |
| 34 | + days-before-issue-close: 30 |
| 35 | + stale-issue-label: 'stale' |
| 36 | + stale-issue-message: > |
| 37 | + This issue has been inactive for 180 days and labeled **stale**, comment to keep it open. It will be closed in 30 days if there is no activity. |
| 38 | + close-issue-message: > |
| 39 | + Closed after 210 days of inactivity. Feel free to reopen if this is still relevant. |
| 40 | + exempt-issue-labels: 'release,security,audit,do-not-close,good first issue' |
| 41 | + exempt-all-issue-milestones: true |
| 42 | + |
| 43 | + days-before-pr-stale: 180 |
| 44 | + days-before-pr-close: 30 |
| 45 | + stale-pr-label: 'stale' |
| 46 | + stale-pr-message: > |
| 47 | + This pull request has had no activity for 180 days and has been labeled **stale**. If this work is still in progress or waiting on review, a comment or push will remove the label. PRs with no further activity for 30 days will be closed. |
| 48 | + close-pr-message: > |
| 49 | + This pull request has been closed after 210 days of inactivity. |
| 50 | + Thank you for your contribution to BDK! If you would like to continue this work, feel free to reopen it or open a new PR referencing this one. |
| 51 | + exempt-pr-labels: 'blocked,security,do-not-close' |
| 52 | + exempt-all-pr-milestones: true |
| 53 | + exempt-draft-pr: true |
| 54 | + |
| 55 | + remove-stale-when-updated: true |
| 56 | + ascending: true |
| 57 | + operations-per-run: 600 |
| 58 | + debug-only: ${{ github.event_name == 'pull_request' || github.event.inputs.debug_only == 'true' }} |
| 59 | + enable-statistics: true |
0 commit comments