You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
gh-actions-pr-reviewstatus-labeler
v1.0.3
A Github Action to add/remove labels on Pull Request based on its review status
Create a workflow (eg: .github/workflows/labeler.yml
see Creating a Workflow file) to utilize the labeler action with content:
name: "Pull Request Review Status Labeler"
on:
pull_request:
types:
[
opened,
synchronize,
reopened,
ready_for_review,
review_requested,
review_request_removed,
closed
]
pull_request_review:
jobs:
build:
strategy:
max-parallel: 1
runs-on: ubuntu-latest
steps:
- uses: amblerhq/gh-actions-pr-reviewstatus-labeler@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Note: This grants access to the GITHUB_TOKEN
so the action can make calls to GitHub's rest API