GitHub - Pandapip1/jekyll-label-action: Automatically add labels depending on Jekyll front matter attributes (original) (raw)

jekyll-label-action

Automatically adds labels depending on what files are modified in a pull request.

Usage

This action is meant to be used as a standalone workflow:

File name: jekyll-label-action.yml

on: pull_request_target:

jobs: jekyll-label-action: name: Automatic Label Bot runs-on: ubuntu-latest

steps:
  - uses: Pandapip1/jekyll-label-action@bfc2f4c2e738017a20b4822c229f02d1db79c59b
    with:
      token: ${{ secrets.GITHUB_TOKEN }}  # Valid GitHub token
      config-path: .jekyll-labels.yml          # Path to config file

Configuration

This action uses a configuration file (default: .jekyll-labels.yml). The format is simple:

label-to-apply: this?.new?.property == 'value' "other-label-to-apply-that-requires-quotes": this?.old?.property2 == 'value2'

See ethereum/EIPs for a proper example.