Try to fix label enforcement.
-name: Enforce PR labels
+name: 'Enforce PR labels'
on:
pull_request:
- types: [unlabeled]
+ types: [labeled, unlabeled, opened, edited, synchronize]
jobs:
enforce-label:
runs-on: ubuntu-latest
steps:
- uses: yogevbd/enforce-label-action@2.1.0
with:
- REQUIRED_LABELS_ANY: "bug,feature,enhancement,deprecated,removed,tests,documentation,internal,dependencies"
- REQUIRED_LABELS_ANY_DESCRIPTION: "Maintainer needs to assign at least one label before merge"
- BANNED_LABELS: "banned"
+ REQUIRED_LABELS_ANY: 'bug,feature,enhancement,deprecated,removed,tests,documentation,internal,dependencies'
+ REQUIRED_LABELS_ANY_DESCRIPTION: 'Maintainer needs to assign at least one label before merge'
+ BANNED_LABELS: 'banned'
