Pick a random member from a team in GitHub Issues/Pull Requests
on:
issue_comment:
types: [created]
jobs:
commented:
if: startsWith(github.event.comment.body, '/random ')
runs-on: ubuntu-latest
steps:
- uses: yuya-takeyama/pick-random-member-action@v0.1.1
with:
github-token: ${{ secrets.YOUR_GITHUB_TOKEN_WITH_REPO_SCOPE }}
ignored-members: 'bot1,bot2'
Name | Required | Default | Description |
---|---|---|---|
github-token |
true |
GitHub API token | |
ignored-members |
false |
Comma-separated list of members to ignore |
repo
secrets.GITHUB_TOKEN
doesn't work for it.
/random @org/team
/random 3 @org/team