|
| 1 | +name: Mark stale issues and pull requests |
| 2 | + |
| 3 | +on: |
| 4 | + schedule: |
| 5 | + - cron: "0 12 * * 0" |
| 6 | + |
| 7 | +jobs: |
| 8 | + stale: |
| 9 | + runs-on: ubuntu-latest |
| 10 | + steps: |
| 11 | + - name: Stale PRs and issues policy |
| 12 | + uses: actions/stale@v4 |
| 13 | + with: |
| 14 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 15 | + # General settings. |
| 16 | + ascending: true |
| 17 | + remove-stale-when-updated: true |
| 18 | + # Pull Requests settings. |
| 19 | + # 120+30 day stale policy for PRs |
| 20 | + # * Except PRs marked as "no stale" |
| 21 | + days-before-pr-stale: 120 |
| 22 | + days-before-pr-close: 30 |
| 23 | + exempt-pr-labels: "no stale" |
| 24 | + stale-pr-label: "stale" |
| 25 | + stale-pr-message: > |
| 26 | + There hasn't been any activity on this pull request in the past 4 months, so |
| 27 | + it has been marked as stale and it will be closed automatically if no |
| 28 | + further activity occurs in the next 30 days. |
| 29 | +
|
| 30 | + If you want this PR to never become stale, please ask a PSC member to apply |
| 31 | + the "no stale" label. |
| 32 | + # Issues settings. |
| 33 | + # 180+30 day stale policy for open issues |
| 34 | + # * Except Issues marked as "no stale" |
| 35 | + days-before-issue-stale: 180 |
| 36 | + days-before-issue-close: 30 |
| 37 | + exempt-issue-labels: "no stale,needs more information" |
| 38 | + stale-issue-label: "stale" |
| 39 | + stale-issue-message: > |
| 40 | + There hasn't been any activity on this issue in the past 6 months, so it has |
| 41 | + been marked as stale and it will be closed automatically if no further |
| 42 | + activity occurs in the next 30 days. |
| 43 | +
|
| 44 | + If you want this issue to never become stale, please ask a PSC member to |
| 45 | + apply the "no stale" label. |
| 46 | +
|
| 47 | + # 15+30 day stale policy for issues pending more information |
| 48 | + # * Issues that are pending more information |
| 49 | + # * Except Issues marked as "no stale" |
| 50 | + - name: Needs more information stale issues policy |
| 51 | + uses: actions/stale@v4 |
| 52 | + with: |
| 53 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 54 | + ascending: true |
| 55 | + only-labels: "needs more information" |
| 56 | + exempt-issue-labels: "no stale" |
| 57 | + days-before-stale: 15 |
| 58 | + days-before-close: 30 |
| 59 | + days-before-pr-stale: -1 |
| 60 | + days-before-pr-close: -1 |
| 61 | + remove-stale-when-updated: true |
| 62 | + stale-issue-label: "stale" |
| 63 | + stale-issue-message: > |
| 64 | + This issue needs more information and there hasn't been any activity |
| 65 | + recently, so it has been marked as stale and it will be closed automatically |
| 66 | + if no further activity occurs in the next 30 days. |
| 67 | +
|
| 68 | + If you think this is a mistake, please ask a PSC member to remove the "needs |
| 69 | + more information" label. |
0 commit comments