action-label-manager

Manage labels on GitHub repositories easily

MIT License

Stars
1
Committers
4

Label Manager Action

Maintain the labels on your GitHub repository through a file in your repository.

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"
Badges
Extracted from project README
Pre-Release
Related Projects