Skip to content

A GitHub action to synchronize labels from a remote or local file. 🏷️

License

Notifications You must be signed in to change notification settings

boywithkeyboard-archive/labeler

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

labeler

e.g. ./.github/labeler.yml

labels:
  - name: 'foo'
    color: 'd73a4a'
    description: 'Some description.'
  - name: 'bar'
    color: '0075ca'
    description: 'Some description.'

Usage

name: labeler

on:
  push:
    branches:
      - 'main'
    paths:
      - '.github/labeler.yml'
  workflow_dispatch:

jobs:
  labeler:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      - name: Run labeler
        uses: boywithkeyboard/labeler@v1
  • src (defaults to ./.github/labeler.yml)

    The file to use as config for labeler. Can be either a remote file, e.g. https://my.domain/example.yml, or a local file.