Skip to content

Remove labels from Pull Requests on GitHub.

License

Notifications You must be signed in to change notification settings

blinkist/action-remove-pr-labels

Repository files navigation

Remove PR Labels

License: MIT CI

A GitHub action to remove labels from pull requests.

Input

Input Description
GITHUB_TOKEN GitHub access token for authorizing access to the repository.
Defaults to ${{ github.token }}.
LABELS An array of labels to remove, separated by commas. If not specified, all labels will be removed from the issue.

Usage

name: 'Remove all PR labels'
on:
  pull_request:
    types: [closed]

jobs:
  remove-labels:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: blinkist/action-remove-pr-labels@main
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}