NN-1: Conceptually design the knowledge graph and relationships between projects #21
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: Auto Assign Bug Issues | |
| on: | |
| issues: | |
| types: [opened, labeled] | |
| permissions: | |
| issues: write | |
| jobs: | |
| assign: | |
| runs-on: ubuntu-latest | |
| if: contains(github.event.issue.labels.*.name, 'bug') | |
| steps: | |
| - name: Assign issue to maintainer | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| // Add the GitHub usernames you want to auto-assign bugs to | |
| const assignees = ['Sulstice']; | |
| await github.rest.issues.addAssignees({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| assignees: assignees | |
| }); | |
| console.log(`Assigned issue #${context.issue.number} to ${assignees.join(', ')}`); |