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 + diff --git a/src/content/learn/preserving-and-resetting-state.md b/src/content/learn/preserving-and-resetting-state.md index b23d99752..5d09f40a1 100644 --- a/src/content/learn/preserving-and-resetting-state.md +++ b/src/content/learn/preserving-and-resetting-state.md @@ -671,7 +671,11 @@ label { +<<<<<<< HEAD 체크 박스를 선택할 때 카운터 state가 초기화됩니다. `div`의 첫 번째 자식으로 `Counter`를 렌더링하는 것에서 `section`의 첫 번째 자식으로 바꾸지만요. 자식 `div`가 DOM에서 제거될 때 그것의 전체 하위 트리(`Counter`와 그 state를 포함해서)는 제거됩니다. +======= +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. +>>>>>>> 3ee3a60a1bcc687c0b87039a3a6582e3b1d6887c