Skip to content

Commit 0bc2227

Browse files
committed
chore: remove assignees for stale issue
1 parent b9f1cb8 commit 0bc2227

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: 'Remove Assignees for stale issue'
2+
on:
3+
issues:
4+
types: [labeled]
5+
6+
permissions:
7+
issues: write
8+
9+
jobs:
10+
remove-assignees:
11+
if: github.event.label.name == 'stale'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: 이슈 할당 해제
15+
run: |
16+
curl -X PATCH \
17+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
18+
-H "Accept: application/vnd.github.v3+json" \
19+
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}" \
20+
-d '{"assignees":[]}'

0 commit comments

Comments
 (0)