From 18c500c24f70a8537a1e6106ffb78d1070d9e4d1 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Fri, 26 Mar 2021 16:33:44 -0300 Subject: [PATCH] add contributor feedback label action --- .github/workflows/update-feedback-labels.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/update-feedback-labels.yml diff --git a/.github/workflows/update-feedback-labels.yml b/.github/workflows/update-feedback-labels.yml new file mode 100644 index 00000000000..db89fdc3737 --- /dev/null +++ b/.github/workflows/update-feedback-labels.yml @@ -0,0 +1,18 @@ +name: 'Update contributor feedback labels on comment' +on: 'issue_comment' + +jobs: + feedback: + if: github.event.issue && contains(github.event.issue.labels.*.name, 'needs feedback') + runs-on: ubuntu-latest + steps: + - name: Add has feedback + uses: actions-ecosystem/action-add-labels@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + labels: 'has feedback' + - name: remove needs feedback + uses: actions-ecosystem/action-remove-labels@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + labels: 'needs feedback'