Auto-label when user responds #7982
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto-label when user responds | |
permissions: | |
issues: write | |
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
run-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Add/Remove labels when user responds | |
uses: andymckay/labeler@master | |
if: ${{ github.event.comment.user.login == github.event.issue.user.login && contains(github.event.issue.labels.*.name, 'waiting for user response') && !contains(github.event.issue.labels.*.name, 'user responded') }} | |
with: | |
add-labels: 'user responded' | |
remove-labels: 'waiting for user response' |