/required-labels-action

A GitHub Actions that automated label checking for pull requests

Primary LanguageTypeScript

required-labels-action

GitHub release (latest by date)

A GitHub Actions that automated label checking for pull requests.

Usage

Inputs

Parameter Required Description
required_any false At least one of these comma separated labels should be present on all Pull requests
required_all false All of these comma separated labels must be present on all Pull requests
required_oneof false At only one of these comma separated labels should be present on all Pull requests
banned false None of these comma separated labels can be present on all Pull requests

Outputs

Parameter Value
required_labels ok

Example Workflow

name: Check labels

on:
  pull_request:
    types: [opened, labeled, unlabeled, reopened]

jobs:
  check-label:
    runs-on: ubuntu-18.04
    steps:
      - uses: sugarshin/required-labels-action@v0.3.1
        with:
          required_all: 'approved'
          required_oneof: 'patch,minor,major'