Skip to content

Commit bcaaa30

Browse files
committed
ci: Tag issues if last commenter is user
1 parent de51011 commit bcaaa30

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 'Tag issues with last commenter'
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
if: ${{ !github.event.issue.pull_request }}
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
15+
- name: Add label if commenter is not member
16+
if: |
17+
github.event.comment.author_association != 'COLLABORATOR'
18+
&& github.event.comment.author_association != 'MEMBER'
19+
&& github.event.comment.author_association != 'OWNER'
20+
uses: actions-ecosystem/action-add-labels@v1
21+
with:
22+
labels: 'Status: User responded'
23+
24+
- name: Remove label if commenter is member
25+
if: |
26+
github.event.comment.author_association == 'COLLABORATOR'
27+
|| github.event.comment.author_association == 'MEMBER'
28+
|| github.event.comment.author_association == 'OWNER'
29+
uses: actions-ecosystem/action-remove-labels@v1
30+
with:
31+
labels: 'Status: User responded'

0 commit comments

Comments
 (0)