[FEAT] 온보딩(독서 취향 테스트) API 구현 #13
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: 이슈 발행자 자동 등록 | |
| on: | |
| issues: | |
| types: [opened] | |
| permissions: | |
| issues: write | |
| jobs: | |
| assign: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 이슈 발행자 등록 | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const creator = context.payload.issue.user.login; | |
| await github.rest.issues.addAssignees({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| assignees: [creator] | |
| }); |