name: Assignment management

on:
  pull_request_target:
    types: [opened, reopened]

permissions:
  pull-requests: write

jobs:
  assign-author:
    name: Auto-assign pull request author
    if: github.repository_owner == 'consuldemocracy'
    runs-on: ubuntu-24.04
    steps:
      - uses: toshimaru/auto-author-assign@v2.1.1
