[FEAT] 카카오 OAuth 세션 WebSocket 로그인 컨텍스트에 연동 #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Issue Assignment | |
| on: | |
| issues: | |
| types: [opened] | |
| permissions: | |
| issues: write | |
| jobs: | |
| assign_assignee: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Assign issue to author | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const issue = context.payload.issue; | |
| const assignees = issue.assignees; | |
| if (assignees.length > 0) { | |
| console.log('이미 assignee가 지정되어 있습니다.'); | |
| return; | |
| } | |
| const author = issue.user.login; | |
| const issue_number = issue.number; | |
| const { owner, repo } = context.repo; | |
| await github.rest.issues.addAssignees({ | |
| owner: owner, | |
| repo: context.repo.repo, | |
| issue_number: issue_number, | |
| assignees: [author] | |
| }); | |