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

GitHub Action

Simple Issue Labeler

1.0

Simple Issue Labeler

zap-off

Simple Issue Labeler

Adds and removes labels from issues

Installation

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

              

- name: Simple Issue Labeler

uses: andymckay/[email protected]

Learn more about this action in andymckay/labeler

Choose a version

Automatically labels issues, by adding new labels to the issue. You define the labels you'd like to add to your issues in the YAML file.

To add it to your workflow:

    - uses: andymckay/[email protected]
      with:
        repo-token: "${{ secrets.GITHUB_TOKEN }}"
        labels: "needs-triage, bug"

This adds the needs-triage and bug issues 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]

That's it.