Skip to content

Label On Changes

Actions
Allocate labels depends on changed files
v2
Latest
Star (4)

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'

Label On Changes is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Allocate labels depends on changed files
v2
Latest

Label On Changes is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.