design and logos #1
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 and Label Issues | |
on: | |
issues: | |
types: [opened] | |
jobs: | |
assign-and-label: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
steps: | |
- name: Auto assign issue | |
run: | | |
ASSIGNEE='your-username' # Replace 'your-username' with the GitHub username to assign the issue to | |
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\":[\"${ASSIGNEE}\"]}" | |
- name: Auto label issue | |
run: | | |
LABELS='["good first issue", "gssoc", "level 1"]' | |
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 }}/labels \ | |
-d "{\"labels\":${LABELS}}" |