2021-03-26 19:33:44 +00:00
|
|
|
name: 'Update contributor feedback labels on comment'
|
|
|
|
on: 'issue_comment'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
feedback:
|
2021-04-07 20:25:26 +00:00
|
|
|
if: |
|
|
|
|
github.actor != 'github-actions' &&
|
|
|
|
github.event.issue &&
|
|
|
|
github.event.issue.state == 'open' &&
|
|
|
|
contains(github.event.issue.labels.*.name, 'needs feedback')
|
2021-03-26 19:33:44 +00:00
|
|
|
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'
|