This GitHub Action will remove all labels of a PR upon trigger. This is specially useful if you execute this action upon pull request merge/close.
Add a GitHub action.
name: Remove All Labels
on:
pull_request:
types: [closed]
jobs:
remove_labels:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: rogerluan/label-remover@v1.0.1
with:
github_token: ${{ secrets.github_token }}
Copyright 2020 Roger Oba.
Label Remover is released under the MIT License.