This workflow automates process for assigning assignees to the PR which would opened or reopened from a users list. Workflows have been added in .github/workflows/pr-auto-assignee.yml
Below workflow can be used to automatically assign the assignee to a pull request (PR) when the request is opened or reopened from the specified branch. If we provide a list of users, it will randomly select one user and assign as assignee to the PR.
name: Auto Assign PRs
on:
pull_request:
types: [opened, reopened]
workflow_dispatch:
jobs:
assign-pr:
uses: clouddrove/github-shared-workflows/.github/workflows/pr-auto-assignee.yml@v2
secrets:
GITHUB: ${{ secrets.TOKEN_GITHUB }}
with:
assignees: #list of usernames of assignees