[week-06-implementation] 17413, 15683 #7
This file contains 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: Auto Assign Issue to Creator | |
on: | |
issues: | |
types: [opened] | |
permissions: | |
issues: write | |
jobs: | |
assign: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Assign the issue to the creator | |
run: | | |
curl \ | |
-X POST \ | |
-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 }}/assignees \ | |
-d '{"assignees": ["${{ github.actor }}"]}' |