Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
user-plus

GitHub Action

Auto Author Assign

v1.5.0

Auto Author Assign

user-plus

Auto Author Assign

Assign author to pull requests when the pull requests are opened

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Auto Author Assign

uses: toshimaru/[email protected]

Learn more about this action in toshimaru/auto-author-assign

Choose a version

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_target:
    types: [opened, reopened]

permissions:
  pull-requests: write

jobs:
  assign-author:
    runs-on: ubuntu-latest
    steps:
      - uses: toshimaru/[email protected]

Use your token

You can specify your own token.

jobs:
  assign-author:
    runs-on: ubuntu-latest
    steps:
      - uses: toshimaru/auto-author-assign
        with:
          repo-token: "${{ secrets.YOUR_TOKEN }}"

If not specified, GITHUB_TOKEN will be used by default.

Skip assigning author

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

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