|
| 1 | +name: Issue management - run stale action |
| 2 | + |
| 3 | +on: |
| 4 | + schedule: |
| 5 | + # hourly at minute 50 |
| 6 | + - cron: "50 * * * *" |
| 7 | + workflow_dispatch: |
| 8 | + |
| 9 | +permissions: |
| 10 | + contents: read |
| 11 | + |
| 12 | +jobs: |
| 13 | + stale: |
| 14 | + permissions: |
| 15 | + contents: read |
| 16 | + issues: write # for actions/stale to close stale issues |
| 17 | + pull-requests: write # for actions/stale to close stale PRs |
| 18 | + runs-on: ubuntu-latest |
| 19 | + steps: |
| 20 | + - uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0 |
| 21 | + with: |
| 22 | + days-before-stale: 7 |
| 23 | + days-before-close: 7 |
| 24 | + only-labels: "needs author feedback" |
| 25 | + stale-issue-label: stale |
| 26 | + stale-issue-message: > |
| 27 | + This issue has been labeled as stale due to lack of activity and needing author feedback. |
| 28 | + It will be automatically closed if there is no further activity over the next 7 days. |
| 29 | + stale-pr-label: stale |
| 30 | + stale-pr-message: > |
| 31 | + This PR has been labeled as stale due to lack of activity and needing author feedback. |
| 32 | + It will be automatically closed if there is no further activity over the next 7 days. |
| 33 | +
|
| 34 | + - uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0 |
| 35 | + with: |
| 36 | + days-before-stale: 365 |
| 37 | + days-before-close: 0 |
| 38 | + close-issue-label: stale |
| 39 | + close-issue-message: > |
| 40 | + Since there has been no activity on this enhancement for the past year we are closing it to help maintain our backlog. |
| 41 | + Anyone who would like to work on it is still welcome to do so, and we can re-open it at that time. |
| 42 | + days-before-pr-stale: -1 |
| 43 | + days-before-pr-close: -1 |
| 44 | + only-labels: "enhancement" |
| 45 | + exempt-issue-labels: "stale" # so that it won't close issues labeled as stale by "needs author feedback" |
| 46 | + |
| 47 | + - uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0 |
| 48 | + with: |
| 49 | + days-before-issue-stale: -1 |
| 50 | + days-before-issue-close: -1 |
| 51 | + days-before-pr-stale: 90 |
| 52 | + days-before-pr-close: 14 |
| 53 | + stale-pr-label: stale |
| 54 | + stale-pr-message: > |
| 55 | + This PR has been labeled as stale due to lack of activity. |
| 56 | + It will be automatically closed if there is no further activity over the next 14 days. |
| 57 | + exempt-draft-pr: false |
0 commit comments