|
1 | 1 | # A workflow to close issues where the author hasn't responded to a request for |
2 | | -# more information; see https://github.com/godofredoc/no-response for docs. |
| 2 | +# more information; see https://github.com/actions/stale. |
3 | 3 |
|
4 | 4 | name: No Response |
5 | 5 |
|
6 | | -# Both `issue_comment` and `scheduled` event types are required. |
| 6 | +# Run as a daily cron. |
7 | 7 | on: |
8 | | - issue_comment: |
9 | | - types: [created] |
10 | 8 | schedule: |
11 | 9 | # Every day at 8am |
12 | 10 | - cron: '0 8 * * *' |
13 | 11 |
|
14 | 12 | # All permissions not specified are set to 'none'. |
15 | 13 | permissions: |
16 | 14 | issues: write |
| 15 | + pull-requests: write |
17 | 16 |
|
18 | 17 | jobs: |
19 | | - noResponse: |
| 18 | + no-response: |
20 | 19 | runs-on: ubuntu-latest |
21 | 20 | if: ${{ github.repository_owner == 'dart-lang' }} |
22 | 21 | steps: |
23 | | - - uses: godofredoc/no-response@0ce2dc0e63e1c7d2b87752ceed091f6d32c9df09 |
| 22 | + - uses: actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84 |
24 | 23 | with: |
25 | | - responseRequiredLabel: "needs-info" |
26 | | - responseRequiredColor: 4774bc |
27 | | - daysUntilClose: 14 |
28 | | - # Comment to post when closing an Issue for lack of response. |
29 | | - closeComment: > |
30 | | - Without additional information we're not able to resolve this issue, |
31 | | - so it will be closed at this time. You're still free to add more |
32 | | - info and respond to any questions above, though. We'll reopen the |
33 | | - issue if you do. Thanks for your contribution! |
34 | | - token: ${{ github.token }} |
| 24 | + days-before-stale: -1 |
| 25 | + days-before-close: 14 |
| 26 | + stale-issue-label: "needs-info" |
| 27 | + close-issue-message: > |
| 28 | + Without additional information we're not able to resolve this issue. |
| 29 | + Feel free to add more info or respond to any questions above and we |
| 30 | + can reopen the case. Thanks for your contribution! |
| 31 | + stale-pr-label: "needs-info" |
| 32 | + close-pr-message: > |
| 33 | + Without additional information we're not able to resolve this PR. |
| 34 | + Feel free to add more info or respond to any questions above. |
| 35 | + Thanks for your contribution! |
0 commit comments