Skip to content
tag

GitHub Action

Label Manager

v0.0.13 Latest version

Label Manager

tag

Label Manager

Manages labels on GitHub repositories

Installation

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

              

- name: Label Manager

uses: oliversalzburg/[email protected]

Learn more about this action in oliversalzburg/action-label-manager

Choose a version

Label Manager Action

Usage

  1. Create .github/labels.yml in your repository, and define some labels.

    labels:
      metadata:
        color: "EEEEEE"
        description: Relates to package metadata
  2. Call the action in a workflow.

    name: Manage Labels
    
    on:
      push:
        branches:
          - main
        paths:
          - .github/labels.yml
      workflow_dispatch:
    
    concurrency: manage-labels
    
    jobs:
      manage-labels:
        permissions:
          contents: read
          issues: write
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v4
          - uses: oliversalzburg/[email protected]
            with:
              repo_token: ${{ secrets.GITHUB_TOKEN }}

Inputs

INPUT TYPE REQUIRED DEFAULT DESCRIPTION
force string false If set to true, will
remove labels that are no
longer defined in the configuration.
repo_token string true Needs secrets.GITHUB_TOKEN to talk to
the API.

Release Process

npm version patch --message "chore: Version bump %s"