Skip to content

Warning

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

Simple Issue Labeler

Actions
Adds and removes labels from issues
1.0.1
Star (36)

Tags

 (1)

Automatically adds or removes labels from issues. You define the labels you'd like to add and/or remove in the YAML file.

To add it to your workflow:

    - uses: andymckay/labeler@1.0.0
      with:
        repo-token: "${{ secrets.GITHUB_TOKEN }}"
        add-labels: "needs-triage, bug"

This adds the needs-triage and bug labels to the issue. The most common approach is to do this when issues are created, you can do this with the following in your workflow file:

on: 
  issues:
    types: [opened]

This action can also be used to remove labels from an issue. Just pass the label(s) to be removed separated by commas.

    - uses: andymckay/labeler@1.0.0
      with:
        repo-token: "${{ secrets.GITHUB_TOKEN }}"
        remove-labels: "help-wanted"

An example use-case would be, to remove the help-wanted label when an issue is assigned to someone. For this, the workflow file would look like:

on:
  issues:
    types: [assigned]

Simple Issue Labeler is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Adds and removes labels from issues
1.0.1

Tags

 (1)

Simple Issue Labeler is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.