Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 856 Bytes

README.md

File metadata and controls

39 lines (26 loc) · 856 Bytes

Build

auto-author-assign

GitHub Actions: Assign pull request author automatically.

OG image

Why this action?

In most cases, pull request author should be assigned an assignee of the pull request.

This action automatically assigns PR author as an assignee.

Usage

# .github/workflows/auto-author-assign.yml
name: 'Auto Author Assign'

on:
  pull_request:
    types: [opened, reopened]

jobs:
  add-assignees:
    runs-on: ubuntu-latest
    steps:
      - uses: toshimaru/auto-author-assign@v1.1.0
        with:
          repo-token: "${{ secrets.GITHUB_TOKEN }}"

Skip assigning author

auto-author-assign action skips assigning the author when:

  • Someone is already assigned as an assignee
  • The author is a bot