|
| 1 | +# See https://github.com/marketplace/actions/close-stale-issues |
| 2 | + |
| 3 | +name: Mark stale issues and pull requests |
| 4 | + |
| 5 | +on: |
| 6 | + schedule: |
| 7 | + # run at 22:45 UTC daily |
| 8 | + - cron: "45 22 * * *" |
| 9 | + |
| 10 | +jobs: |
| 11 | + stale: |
| 12 | + runs-on: ubuntu-latest |
| 13 | + |
| 14 | + steps: |
| 15 | + - uses: actions/stale@v3 |
| 16 | + with: |
| 17 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 18 | + |
| 19 | + # NB: We start with very long duration while trimming existing issues, |
| 20 | + # with the hope to reduce when/if we get better at keeping up with user support. |
| 21 | + |
| 22 | + # The number of days old an issue can be before marking it stale. |
| 23 | + days-before-stale: 180 |
| 24 | + # Number of days of inactivity before a stale issue is closed |
| 25 | + days-before-close: 30 |
| 26 | + |
| 27 | + # If an issue/PR is assigned, trust the assignee to stay involved |
| 28 | + # Can revisit if these get stale |
| 29 | + exempt-all-assignees: true |
| 30 | + # Issues with these labels will never be considered stale |
| 31 | + exempt-issue-labels: "need: discussion,cleanup" |
| 32 | + |
| 33 | + # Label to use when marking an issue as stale |
| 34 | + stale-issue-label: 'Can Close?' |
| 35 | + stale-pr-label: 'Can Close?' |
| 36 | + |
| 37 | + stale-issue-message: > |
| 38 | + This issue has been automatically marked as stale because it has not had |
| 39 | + any activity for 180 days. |
| 40 | + It will be closed if no further activity occurs in 30 days. |
| 41 | +
|
| 42 | + Collaborators can add an assignee to keep this open indefinitely. |
| 43 | + Thanks for your contributions to rules_python! |
| 44 | +
|
| 45 | + stale-pr-message: > |
| 46 | + This Pull Request has been automatically marked as stale because it has not had |
| 47 | + any activity for 180 days. |
| 48 | + It will be closed if no further activity occurs in 30 days. |
| 49 | +
|
| 50 | + Collaborators can add an assignee to keep this open indefinitely. |
| 51 | + Thanks for your contributions to rules_python! |
| 52 | +
|
| 53 | + close-issue-message: > |
| 54 | + This issue was automatically closed because it went 30 days without a reply |
| 55 | + since it was labeled "Can Close?" |
| 56 | +
|
| 57 | + close-pr-message: > |
| 58 | + This PR was automatically closed because it went 30 days without a reply |
| 59 | + since it was labeled "Can Close?" |
0 commit comments