Assign any amount of members from a given GitHub Team as Assignees to a PR.
Members are chosen randomly.
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
npm run build && npm run package