Skip to content

zattoo/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

GitHub Action to recognize areas in the code that were affected and label by metadata files

Inputs

token

string

Required. GitHub token

source

string

Required. Filename which contain label metadata to look for

Usage

Metadata file

The metadata file contains list of labels separated by break-line between which should be assigned ot all sub-paths.

# name: projects/common/.labels
project:common

If the changed file was projects/common/utils/time.js the action will search for the closest source (e.g .labels) In the current example projects/common/.labels is the closest one so all the labels listed in that file will be assigned.

Workflow

name: Project recognition
jobs:
    assign-labels:
        name: Assign labels
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v2
          - uses: zattoo/project-recognition@v1
            with:
              token: ${{github.token}}
              source: '.labels'

About

GitHub Action to recognize areas in the code that were affected and label by metadata files

Resources

License

Stars

Watchers

Forks