Skip to content

Commit 856953b

Browse files
authored
ci: Improve last commenter action (#7911)
1 parent c74eff8 commit 856953b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/label-last-commenter.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ on:
55
types: [created]
66

77
jobs:
8-
deploy:
8+
toggle_labels:
9+
name: Toggle Labels
910
runs-on: ubuntu-latest
1011
if: ${{ !github.event.issue.pull_request }}
1112
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v3
14-
1513
- name: Add label if commenter is not member
14+
# Note: We only add the label if the issue is still open
1615
if: |
1716
github.event.comment.author_association != 'COLLABORATOR'
1817
&& github.event.comment.author_association != 'MEMBER'
1918
&& github.event.comment.author_association != 'OWNER'
19+
&& !github.event.issue.closed
2020
uses: actions-ecosystem/action-add-labels@v1
2121
with:
2222
labels: 'Waiting for: Team'

0 commit comments

Comments
 (0)