Skip to content

NN-1: Conceptually design the knowledge graph and relationships between projects #21

NN-1: Conceptually design the knowledge graph and relationships between projects

NN-1: Conceptually design the knowledge graph and relationships between projects #21

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(', ')}`);