# auto-assign-issue (https://github.com/marketplace/actions/auto-assign-issue)
name: Issue assignment

on:
  issues:
    types: [opened]

permissions:
  issues: write

jobs:
  auto-assign:
    runs-on: ubuntu-latest
    steps:
      - uses: pozil/auto-assign-issue@v1
        if: "contains(github.event.issue.labels.*.name, 'status: needs triage')"
        with:
          # Weighted assignments
          assignees: arthanson:3, jeffgdotorg:3, jeremystretch:3, abhi1693, DanSheps
          numOfAssignee: 1
          abortIfPreviousAssignees: true
