From 732429e35b11496c4a5662e9e83ef756c3684ffe Mon Sep 17 00:00:00 2001 From: godofredoc Date: Thu, 29 Jun 2023 21:20:09 -0700 Subject: [PATCH] Revert no-response to fork. (#129775) The core action is not scaling well for the # of Prs and bugs of the flutter project. Bug: https://github.com/flutter/flutter/issues/129771 --- .github/workflows/no-response.yaml | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/.github/workflows/no-response.yaml b/.github/workflows/no-response.yaml index b807841f7a..79cae48251 100644 --- a/.github/workflows/no-response.yaml +++ b/.github/workflows/no-response.yaml @@ -3,6 +3,8 @@ name: No Response # Both `issue_comment` and `scheduled` event types are required for this Action # to work properly. on: + issue_comment: + types: [created] schedule: # Schedule for five minutes after the hour, every hour - cron: '5 * * * *' @@ -11,18 +13,17 @@ on: # specified are set to 'none'. permissions: issues: write - pull-requests: write jobs: - no-response: + noResponse: runs-on: ubuntu-latest if: ${{ github.repository == 'flutter/flutter' }} steps: - - uses: actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84 + - uses: godofredoc/no-response@0ce2dc0e63e1c7d2b87752ceed091f6d32c9df09 with: - repo-token: ${{ github.token }} + token: ${{ github.token }} # Comment to post when closing an Issue for lack of response. Set to `false` to disable - close-issue-message: > + closeComment: > Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. @@ -34,16 +35,6 @@ jobs: Thanks for your contribution. # Number of days of inactivity before an issue is closed for lack of response. - days-before-stale: -1 - days-before-close: 21 - close-issue-label: "r: timeout" + daysUntilClose: 21 # Label requiring a response. - stale-issue-label: "waiting for customer response" - stale-pr-label: "needs-info" - close-pr-message: > - Without additional information we're not able to resolve this PR. - Feel free to add more info or respond to any questions above. - Thanks for your contribution! - close-pr-label: "r: timeout" - operations-per-run: 200 - any-of-labels: "waiting for customer response,needs-info" + responseRequiredLabel: "waiting for customer response"