Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
award

GitHub Action

gh-actions-pr-reviewstatus-labeler

v1.0.5

gh-actions-pr-reviewstatus-labeler

award

gh-actions-pr-reviewstatus-labeler

Add/remove labels on Pull Request based on its review status

Installation

Copy and paste the following snippet into your .yml file.

              

- name: gh-actions-pr-reviewstatus-labeler

uses: amblerhq/[email protected]

Learn more about this action in amblerhq/gh-actions-pr-reviewstatus-labeler

Choose a version

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