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

GitHub Action

Auto Assign Assignees From Team

v1.2.0

Auto Assign Assignees From Team

check

Auto Assign Assignees From Team

Assign Assignees to a PR from a team

Installation

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

              

- name: Auto Assign Assignees From Team

uses: dc-ag/[email protected]

Learn more about this action in dc-ag/auto-assign-assignees-from-team

Choose a version

Auto Assign Assignees From Team

Assign any amount of members from a given GitHub Team as Assignees to a PR.
Members are chosen randomly.

Example Usage

name: "Assign Assignees"
on:
  pull_request:
    types: [opened, ready_for_review]

jobs:
  assign-assignees:
    runs-on: ubuntu-latest
    steps:
      - name: "Assign assignees from team"
        uses: dc-ag/[email protected]
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          read-token: ${{ secrets.GITHUB_READ_TOKEN }} # Read only token which needs access to fetch team members
          team: "team" # the team name
          amount: 0 # amount of assignees to assign from the given team, 0 to assign all. If the amount exceeds the member count of the team all members will be added

Build

npm run build && npm run package