diff --git a/.github/workflows/auto-assignee.yaml b/.github/workflows/auto-assignee.yaml new file mode 100644 index 00000000..a2b75dcd --- /dev/null +++ b/.github/workflows/auto-assignee.yaml @@ -0,0 +1,21 @@ +name: Auto Assignees + +on: + pull_request: + types: + - opened + +jobs: + add-auto-assignees: + runs-on: ubuntu-latest + + steps: + - name: add assignees + run: | + curl -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/mash-up-kr/Dorabangs_Android/issues/${{ github.event.number }}/assignees \ + -d '{"assignees": ["${{ github.actor }}"]}'