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

GitHub Action

Add Labels

v0.2

Add Labels

plus

Add Labels

Add labels on Pull Requests or Issues

Installation

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

              

- name: Add Labels

uses: christianvuerings/[email protected]

Learn more about this action in christianvuerings/add-labels

Choose a version

Add Labels

A GitHub Action to add labels on PR / Issue events

Inputs

labels

Required Labels to add.

Example usage

name: Add Label
on:
  pull_request:
    branches:
      - master
    types:
      - opened

jobs:
  add-label:
    name: Add Label
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: christianvuerings/add-labels@1
        with:
          labels: |
            minor release
            bug
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Update compiled files

npm i -g @zeit/ncc
ncc build index.js