From 3ee3a60a1bcc687c0b87039a3a6582e3b1d6887c Mon Sep 17 00:00:00 2001 From: Soichiro Miki Date: Mon, 26 May 2025 17:56:28 +0900 Subject: [PATCH 1/2] Fix wrong explanation in preserving-and-resetting-state (#6043) --- src/content/learn/preserving-and-resetting-state.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/preserving-and-resetting-state.md b/src/content/learn/preserving-and-resetting-state.md index bf5531f35..11d398d23 100644 --- a/src/content/learn/preserving-and-resetting-state.md +++ b/src/content/learn/preserving-and-resetting-state.md @@ -672,7 +672,7 @@ label { -The counter state gets reset when you click the checkbox. Although you render a `Counter`, the first child of the `div` changes from a `div` to a `section`. When the child `div` was removed from the DOM, the whole tree below it (including the `Counter` and its state) was destroyed as well. +The counter state gets reset when you click the checkbox. Although you render a `Counter`, the first child of the `div` changes from a `section` to a `div`. When the child `section` was removed from the DOM, the whole tree below it (including the `Counter` and its state) was destroyed as well. From a2692e76a7d8fd8df43ee8976aa6f9a2ca782222 Mon Sep 17 00:00:00 2001 From: Younsang Na <77400131+nayounsang@users.noreply.github.com> Date: Mon, 2 Jun 2025 21:31:40 +0900 Subject: [PATCH 2/2] chore: processing stale issue (#1171) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close #1168 # - stale 이슈 처리 자동화 액션 **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] [기여자 행동 강령 규약Code of Conduct](https://github.com/reactjs/ko.react.dev/blob/main/CODE_OF_CONDUCT.md) - [x] [기여 가이드라인Contributing](https://github.com/reactjs/ko.react.dev/blob/main/CONTRIBUTING.md) - [x] [공통 스타일 가이드Universal Style Guide](https://github.com/reactjs/ko.react.dev/blob/main/wiki/universal-style-guide.md) - [x] [번역을 위한 모범 사례Best Practices for Translation](https://github.com/reactjs/ko.react.dev/blob/main/wiki/best-practices-for-translation.md) - [x] [번역 용어 정리Translate Glossary](https://github.com/reactjs/ko.react.dev/blob/main/wiki/translate-glossary.md) - [x] [`textlint` 가이드Textlint Guide](https://github.com/reactjs/ko.react.dev/blob/main/wiki/textlint-guide.md) - [x] [맞춤법 검사Spelling Check](https://nara-speller.co.kr/speller/) ## 선택 확인 사항 - [ ] 번역 초안 작성Draft Translation - [ ] 리뷰 반영Resolve Reviews --------- Co-authored-by: Haegul Pyun --- .github/workflows/remove-assignees.yml | 20 ++++++++++++++++++ .github/workflows/stale-issue.yml | 29 ++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 .github/workflows/remove-assignees.yml create mode 100644 .github/workflows/stale-issue.yml diff --git a/.github/workflows/remove-assignees.yml b/.github/workflows/remove-assignees.yml new file mode 100644 index 000000000..4a9c83347 --- /dev/null +++ b/.github/workflows/remove-assignees.yml @@ -0,0 +1,20 @@ +name: 'Remove Assignees for stale issue' +on: + issues: + types: [labeled] + +permissions: + issues: write + +jobs: + remove-assignees: + if: github.event.label.name == 'stale' + runs-on: ubuntu-latest + steps: + - name: 이슈 할당 해제 + run: | + curl -X PATCH \ + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + -H "Accept: application/vnd.github.v3+json" \ + "https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}" \ + -d '{"assignees":[]}' diff --git a/.github/workflows/stale-issue.yml b/.github/workflows/stale-issue.yml new file mode 100644 index 000000000..19f660577 --- /dev/null +++ b/.github/workflows/stale-issue.yml @@ -0,0 +1,29 @@ +name: 'Stale Issue' +on: + schedule: + - cron: '0 1 * * *' + workflow_dispatch: + +permissions: + issues: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-stale: 30 + days-before-close: -1 + + stale-issue-message: '30일 동안 작업이 없어 할당을 해제합니다.' + stale-issue-label: 'stale' + exempt-issue-labels: 'DO NOT CLOSE OR MERGE,discussion,term,TIP' + + days-before-pr-stale: -1 + + labels-to-remove-when-unstale: 'stale' + + include-only-assigned: true +