Skip to content

amblerhq/gh-actions-pr-reviewstatus-labeler

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

Pull Request Review Status Labeler

A Github Action to add/remove labels on Pull Request based on its review status

CI status Conventional Commits

Usage

Create Workflow

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