hugo-toha/.github/workflows/enforce-lablel.yml
Emruz Hossain 55da71cd90
Separate label enforcer job to separate workflow (#982)
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
2024-09-20 00:41:13 +00:00

16 lines
582 B
YAML

name: Label Enforcer
# Run action on pull request creation, reopening, or label changes
on:
pull_request:
types: [opened, reopened, labeled, unlabeled]
jobs:
# Ensure that PR has desired labels
enforce-label:
runs-on: ubuntu-latest
steps:
- uses: yogevbd/enforce-label-action@2.2.2
with:
REQUIRED_LABELS_ANY: "automerge,breaking-change,bug-fix,enhancement,feature,translation"
REQUIRED_LABELS_ANY_DESCRIPTION: "The PR must have at least one these labels: ['automerge','breaking-change','bug-fix','enhancement','feature','translation']"