A GitHub Actions that automated label checking for pull requests.
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 |
Parameter |
Value |
required_labels |
ok |
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'