From 2ef9200a4dbd6ee7b4ce20f9220028888fcc142b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ramos?= Date: Wed, 18 Mar 2020 00:38:18 -0700 Subject: [PATCH] Enable 'Needs Attention' action (#28338) Summary: The ['Needs Attention'](https://github.com/hramos/needs-attention) action will remove the "Needs: Author Feedback" label and replace it with "Needs: Attention" whenever the original author of an issue adds a comment. Removes the `no-response` GitHub integration. The 'close after 21 days' functionality from `no-response` is not present in the 'Needs Attention' action. We'll need to add this back some other way. Considering we were not closing issues that were in the Needs Response state until recently, I think it's OK to proceed here. ## Changelog [Internal] [CI] - Enable 'Needs Attention' action Pull Request resolved: https://github.com/facebook/react-native/pull/28338 Test Plan: https://github.com/hramos/needs-attention/issues/1 Reviewed By: cpojer Differential Revision: D20506380 Pulled By: hramos fbshipit-source-id: a5a0a7fc330821b7c51aabc0905f520d5caa829a --- .github/no-response.yml | 12 ------------ .github/workflows/needs-attention.yml | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 12 deletions(-) delete mode 100644 .github/no-response.yml create mode 100644 .github/workflows/needs-attention.yml diff --git a/.github/no-response.yml b/.github/no-response.yml deleted file mode 100644 index 3ae80668434..00000000000 --- a/.github/no-response.yml +++ /dev/null @@ -1,12 +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: "Needs: Author Feedback" -# Comment to post when closing an Issue for lack of response. Set to `false` to disable -closeComment: > - It's been three weeks since we asked for additional information from the - author of this issue. As it happens, we don't have enough information to - take action. We are going to close this issue, but please do not hesitate - to open a new issue if you are still encountering this problem. diff --git a/.github/workflows/needs-attention.yml b/.github/workflows/needs-attention.yml new file mode 100644 index 00000000000..e5c1a979653 --- /dev/null +++ b/.github/workflows/needs-attention.yml @@ -0,0 +1,21 @@ +name: Issue Needs Attention +# This workflow is triggered on issue comments. +on: + issue_comment: + types: created + +jobs: + applyNeedsAttentionLabel: + name: Apply Needs Attention Label + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Apply Needs Attention Label + uses: hramos/needs-attention@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + response-required-label: "Needs: Author Feedback" + needs-attention-label: "Needs: Attention" + id: needs-attention + - name: Result + run: echo '${{ steps.needs-attention.outputs.result }}'