Next.js 13 app dir API route handlers #1491
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: 'Tag issues with last commenter' | |
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
toggle_labels: | |
name: Toggle Labels | |
runs-on: ubuntu-latest | |
if: ${{ !github.event.issue.pull_request }} | |
steps: | |
- name: Add label if commenter is not member | |
# Note: We only add the label if the issue is still open | |
if: | | |
github.event.comment.author_association != 'COLLABORATOR' | |
&& github.event.comment.author_association != 'MEMBER' | |
&& github.event.comment.author_association != 'OWNER' | |
&& github.event.issue.state == 'open' | |
uses: actions-ecosystem/action-add-labels@v1 | |
with: | |
labels: 'Waiting for: Team' | |
- name: Remove label if commenter is member | |
if: | | |
github.event.comment.author_association == 'COLLABORATOR' | |
|| github.event.comment.author_association == 'MEMBER' | |
|| github.event.comment.author_association == 'OWNER' | |
uses: actions-ecosystem/action-remove-labels@v1 | |
with: | |
labels: 'Waiting for: Team' |