fix: check if preferencesStore is defined #23354
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Label Validation | |
| on: | |
| pull_request_target: # zizmor: ignore[dangerous-triggers] no attacker inputs are used here | |
| types: [opened, labeled, unlabeled, synchronize] | |
| permissions: {} | |
| jobs: | |
| validate-release-label: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| steps: | |
| - name: Require PR to have a changelog label | |
| uses: mheap/github-action-required-labels@8afbe8ae6ab7647d0c9f0cfa7c2f939650d22509 # v5.5.1 | |
| with: | |
| mode: exactly | |
| count: 1 | |
| use_regex: true | |
| labels: 'changelog:.*' | |
| add_comment: true | |
| message: 'Label error. Requires {{errorString}} {{count}} of: {{ provided }}. Found: {{ applied }}. A maintainer will add the required label.' |