add contributor feedback label action

This commit is contained in:
Ron Rennick 2021-03-26 16:33:44 -03:00
parent 4508236bfe
commit 18c500c24f
1 changed files with 18 additions and 0 deletions

View File

@ -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'