Skip to content

Commit a2692e7

Browse files
nayounsanghg-pyun
andauthored
chore: processing stale issue (#1171)
<!-- PR을 보내주셔서 감사합니다! 여러분과 같은 기여자들이 React를 더욱 멋지게 만듭니다! 기존 이슈와 관련된 PR이라면, 아래에 이슈 번호를 추가해주세요. --> close #1168 # <!-- 제목을 작성해주세요. --> - stale 이슈 처리 자동화 액션 <!-- 어떤 종류의 PR인지 상세 내용을 작성해주세요. --> **Stale Issue** - 매일 실행(검증) - 30일 동안 활동없는 할당자 존재하는 이슈 stale 라벨 - 이슈 닫지 않음 - `30일 동안 작업이 없어 할당을 해제합니다.` 코멘트 - `DO NOT CLOSE OR MERGE,discussion,term,TIP` 라벨 포함된 이슈는 검증 제외 - 활동 재게되면 stale 라벨 제거 - PR은 검증 제외 **Remove Assignees for stale issue** - 이슈에 stale 라벨 붙으면 실행(해당 PR merge된 이후 이슈에 대해서만 실행) - 할당자 제거 github actions 자체가 테스팅하기 힘들어 상세한 리뷰 바랍니다. ## 필수 확인 사항 - [x] [기여자 행동 강령 규약<sup>Code of Conduct</sup>](https://github.com/reactjs/ko.react.dev/blob/main/CODE_OF_CONDUCT.md) - [x] [기여 가이드라인<sup>Contributing</sup>](https://github.com/reactjs/ko.react.dev/blob/main/CONTRIBUTING.md) - [x] [공통 스타일 가이드<sup>Universal Style Guide</sup>](https://github.com/reactjs/ko.react.dev/blob/main/wiki/universal-style-guide.md) - [x] [번역을 위한 모범 사례<sup>Best Practices for Translation</sup>](https://github.com/reactjs/ko.react.dev/blob/main/wiki/best-practices-for-translation.md) - [x] [번역 용어 정리<sup>Translate Glossary</sup>](https://github.com/reactjs/ko.react.dev/blob/main/wiki/translate-glossary.md) - [x] [`textlint` 가이드<sup>Textlint Guide</sup>](https://github.com/reactjs/ko.react.dev/blob/main/wiki/textlint-guide.md) - [x] [맞춤법 검사<sup>Spelling Check</sup>](https://nara-speller.co.kr/speller/) ## 선택 확인 사항 - [ ] 번역 초안 작성<sup>Draft Translation</sup> - [ ] 리뷰 반영<sup>Resolve Reviews</sup> --------- Co-authored-by: Haegul Pyun <[email protected]>
1 parent 0780bd0 commit a2692e7

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-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":[]}'

.github/workflows/stale-issue.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: 'Stale Issue'
2+
on:
3+
schedule:
4+
- cron: '0 1 * * *'
5+
workflow_dispatch:
6+
7+
permissions:
8+
issues: write
9+
10+
jobs:
11+
stale:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/stale@v9
15+
with:
16+
repo-token: ${{ secrets.GITHUB_TOKEN }}
17+
days-before-stale: 30
18+
days-before-close: -1
19+
20+
stale-issue-message: '30일 동안 작업이 없어 할당을 해제합니다.'
21+
stale-issue-label: 'stale'
22+
exempt-issue-labels: 'DO NOT CLOSE OR MERGE,discussion,term,TIP'
23+
24+
days-before-pr-stale: -1
25+
26+
labels-to-remove-when-unstale: 'stale'
27+
28+
include-only-assigned: true
29+

0 commit comments

Comments
 (0)