diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..a8202f3 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,13 @@ +## ๐Ÿ“Œ ์ž‘์—… ๋‚ด์šฉ + + + + +- ์–ด๋–ค ์ž‘์—…์„ ํ–ˆ๋Š”์ง€ ์„ค๋ช…ํ•ด ์ฃผ์„ธ์š” + +## ๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท + +## ๐Ÿ“ ๊ธฐํƒ€ + + + diff --git a/.github/workflows/assign-pr.yml b/.github/workflows/assign-pr.yml new file mode 100644 index 0000000..e4b0988 --- /dev/null +++ b/.github/workflows/assign-pr.yml @@ -0,0 +1,27 @@ +name: 'Auto Assign Pull Request' + +on: + pull_request: + types: [opened] + +permissions: + pull-requests: write + +jobs: + auto-assign: + runs-on: ubuntu-latest + steps: + - name: 'Assign author to PR' + uses: actions/github-script@v7 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const prAuthor = context.payload.pull_request.user.login; + const prNumber = context.payload.pull_request.number; + + await github.rest.issues.addAssignees({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: prNumber, + assignees: [prAuthor] + });