From c11efb50166b9990ce0116201616062dda30c8fb Mon Sep 17 00:00:00 2001 From: godofredoc <54371434+godofredoc@users.noreply.github.com> Date: Fri, 30 Jul 2021 16:20:17 -0700 Subject: [PATCH] Re-lands the change to enable the no-response bot (#87381) * Re-lands the change to enable the no-response bot which was reverted on #87361. This is the second retry which was now validated using the github workflows UI. Bug: https://github.com/flutter/flutter/issues/87360 * Remove trailing spaces. --- .github/no-response.yml | 20 --------------- .github/workflows/no-response.yaml | 39 ++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 20 deletions(-) delete mode 100644 .github/no-response.yml create mode 100644 .github/workflows/no-response.yaml diff --git a/.github/no-response.yml b/.github/no-response.yml deleted file mode 100644 index f7c4233dc95..00000000000 --- a/.github/no-response.yml +++ /dev/null @@ -1,20 +0,0 @@ -# Configuration for probot-no-response - https://github.com/probot/no-response - -# Number of days of inactivity before an issue is closed for lack of response. -daysUntilClose: 21 - -# Label requiring a response. -responseRequiredLabel: "waiting for customer response" - -# Comment to post when closing an Issue for lack of response. Set to `false` to disable -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. - - If you find this problem please file a new issue with the same description, - what happens, logs and the output of 'flutter doctor -v'. All system setups - can be slightly different so it's always better to open new issues and reference - the related ones. - - Thanks for your contribution. diff --git a/.github/workflows/no-response.yaml b/.github/workflows/no-response.yaml new file mode 100644 index 00000000000..2b01011487f --- /dev/null +++ b/.github/workflows/no-response.yaml @@ -0,0 +1,39 @@ +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 * * * *' + +# By specifying the access of one of the scopes, all of those that are not +# specified are set to 'none'. +permissions: + issues: write + +jobs: + noResponse: + runs-on: ubuntu-latest + steps: + - uses: lee-dohm/no-response@9bb0a4b5e6a45046f00353d5de7d90fb8bd773bb + with: + token: ${{ github.token }} + # Comment to post when closing an Issue for lack of response. Set to `false` to disable + 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. + + If you find this problem please file a new issue with the same description, + what happens, logs and the output of 'flutter doctor -v'. All system setups + can be slightly different so it's always better to open new issues and reference + the related ones. + + Thanks for your contribution. + # Number of days of inactivity before an issue is closed for lack of response. + daysUntilClose: 21 + # Label requiring a response. + responseRequiredLabel: "waiting for customer response"