Part of 360 Bench, tested fixes for abandoned packages and actions.
This is a GitHub Action to remove GitHub labels from an issue or a pull request.
This is a fork of actions-ecosystem/action-remove-labels by The Actions Ecosystem Authors, updated to run on Node 24. Upstream has not been released since v1.3.0 (September 2021), and its
@v1still declaresusing: node12. All credit for the original action goes to its authors; it remains available under the same Apache License 2.0. See NOTICE for what was changed.
Based on upstream main at d051625
(the v1.3.0 code plus a docs fix). The inputs are the same, the action still has no outputs, each
label is still removed with its own API call, and a label that isn't on the issue is still only a
warning unless you set fail_on_error: 'true'.
- Runs on Node 24 (
using: node24) instead ofnode12. GitHub removed Node 20 from Actions runners on 2026-09-23 and now force-runs older JavaScript actions on Node 24, flagging every run with a deprecation warning.node24is the runtime GitHub currently documents for JavaScript actions. Upstream issue: #413. Unmerged upstream PRs with the same idea: #418, #436 (node16) and #458 (node20). - Current
@actions/core(3.x) and@actions/github(9.x), rebuilt withncc. The old bundle shipped@actions/core1.2 (which only knows the deprecated::set-output/::save-statecommands) and an Octokit that prints a NodeDEP0169(url.parse()) deprecation warning on Node 24. The new bundle writes through$GITHUB_OUTPUT/$GITHUB_STATEwhen it needs to and prints no deprecation warnings.
Replace the uses: line; nothing else changes:
- - uses: actions-ecosystem/action-remove-labels@v1
+ - uses: fitzyracing1/action-remove-labels@v1For the strictest setup, pin the full commit SHA of the release instead of @v1.
| NAME | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
|---|---|---|---|---|
github_token |
A GitHub token. | string |
false |
${{ github.token }} |
labels |
The labels' name to be removed. Must be separated with line breaks if there're multiple labels. | string |
true |
N/A |
number |
The number of the issue or pull request. | number |
false |
${{ github.event.issue.number }} or ${{ github.event.pull_request.number }} |
repo |
The owner and repository name. e.g.) Codertocat/Hello-World |
string |
false |
${{ github.repository }} |
fail_on_error |
Whether the action fails or not when getting errors. [true,false] | bool |
false |
false |
The token needs issues: write (for issues) or pull-requests: write (for pull requests).
name: Remove Label
on: [issue_comment]
permissions:
issues: write
pull-requests: write
jobs:
remove_label:
runs-on: ubuntu-latest
steps:
- uses: fitzyracing1/action-remove-labels@v1
if: ${{ startsWith(github.event.comment.body, '/remove-labels') }}
with:
labels: bugname: Remove Labels
on: [issue_comment]
permissions:
issues: write
pull-requests: write
jobs:
remove_labels:
runs-on: ubuntu-latest
steps:
- uses: fitzyracing1/action-remove-labels@v1
if: ${{ startsWith(github.event.comment.body, '/remove-labels') }}
with:
labels: |
documentation
changelognpm ci
npm run typecheck
npm run build # rebuilds dist/ with ncc
npm testnpm test runs the bundled dist/index.js in a fresh Node process, the way the runner does, with
INPUT_* / GITHUB_* variables and GITHUB_API_URL pointed at a small fake GitHub API
(test/fake-github.mjs). It checks that each label is removed with
DELETE /repos/{owner}/{repo}/issues/{number}/labels/{name} (URL-encoded, with the token), that the
number falls back to the triggering pull request, that a missing label only warns unless
fail_on_error is 'true', that empty input makes no call, that no ::set-output / ::save-state
or Node deprecation warnings are printed, and that action.yml uses node24 with the upstream
inputs unchanged. test/act-workflow.yml runs the same checks through act.
Copyright 2020 The Actions Ecosystem Authors. Modifications copyright 2026 Joshua Almeida.
Released under the Apache License 2.0. See NOTICE for the list of changes.
- In-repo docs: docs/
- Wiki: https://github.com/fitzyracing1/action-remove-labels/wiki
This project is free, and its license stays as is. Support it through GitHub Sponsors:
- Free: use the code, community support.
- Free (followers): follow me on X or GitHub and get free consulting on my products.
- Pro ($49/month): priority issues and support.
- Team ($199/month): priority support for your team plus early access.
