Skip to content

dc-ag/auto-assign-assignees-from-team

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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

About

GitHub Action to assign assignees to a PR from a team

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •