#2101 Wildcard in redirection URI support #8703
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
| # This workflow will perform required checks on pull requests | |
| # Uses: | |
| # OS: ubuntu-latest | |
| name: "🔎 PR Check" | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, labeled, unlabeled, ready_for_review] | |
| merge_group: | |
| jobs: | |
| check-labels: | |
| name: "🏷️ Check PR Labels" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Skip label check for merge queue | |
| if: github.event_name == 'merge_group' | |
| run: echo "Skipping label check for merge queue." | |
| - name: Check for required PR labels | |
| if: github.event_name == 'pull_request' | |
| uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 | |
| with: | |
| script: | | |
| const requiredLabels = [ | |
| 'Type/New Feature', | |
| 'Type/Improvement', | |
| 'Type/Bug', | |
| 'Type/Task', | |
| 'skip-changelog' | |
| ]; | |
| if (typeof context === 'undefined' || !context.payload || !context.payload.pull_request) { | |
| core.setFailed('Could not find PR labels in the event payload.'); | |
| return; | |
| } | |
| const prLabels = context.payload.pull_request.labels.map(l => l.name); | |
| const hasRequired = prLabels.some(label => requiredLabels.includes(label)); | |
| if (!hasRequired) { | |
| core.setFailed(`PR must have at least one of the following labels: ${requiredLabels.join(', ')}`); | |
| } else { | |
| core.info('PR has the required labels.'); | |
| } |