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' &&
|
2022-03-22 15:53:16 +00:00
|
|
|
github.actor == github.event.issue.user.login &&
|
2021-04-07 20:25:26 +00:00
|
|
|
github.event.issue &&
|
|
|
|
github.event.issue.state == 'open' &&
|
2022-02-16 04:50:40 +00:00
|
|
|
contains(github.event.issue.labels.*.name, 'needs: author 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 }}
|
2022-02-16 04:50:40 +00:00
|
|
|
labels: 'needs: triage feedback'
|
2021-05-13 12:25:14 +00:00
|
|
|
- name: remove needs feedback
|
2021-03-26 19:33:44 +00:00
|
|
|
uses: actions-ecosystem/action-remove-labels@v1
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2022-02-16 04:50:40 +00:00
|
|
|
labels: 'needs: author feedback'
|
2021-05-13 12:25:14 +00:00
|
|
|
- name: remove stale
|
|
|
|
uses: actions-ecosystem/action-remove-labels@v1
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2022-02-16 04:50:40 +00:00
|
|
|
labels: 'status: stale'
|