Skip to content
plus

GitHub Action

Add PR/Issue Labels

v1 Latest version

Add PR/Issue Labels

plus

Add PR/Issue Labels

Add labels on Pull Requests or Issues

Installation

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

              

- name: Add PR/Issue Labels

uses: goldsrc/add-labels@v1

Learn more about this action in goldsrc/add-labels

Choose a version

Add Labels

A GitHub Action to add labels on PR / Issues.

Requirements

Inputs

labels

Required Labels to add.

issue_number

Optional Issue/Pull Request number

Example usage

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

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

Update compiled files

pnpm i
npm i -g @vercel/ncc
ncc build src/index.ts

Acknowledgements

forked from christianvuerings/add-labels