fix(skill): publish frontend designer v3.0.1 #6
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 Validation | |
| on: | |
| pull_request: | |
| types: [opened, edited, labeled, unlabeled, synchronize] | |
| branches: [main] | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check issue linkage | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const body = context.payload.pull_request.body || ''; | |
| const issueRegex = /(closes|fixes|resolves)\s+#(\d+)/i; | |
| if (!issueRegex.test(body)) { | |
| core.setFailed('PR must link an issue with Closes/Fixes/Resolves #N'); | |
| } | |
| - name: Check type label | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const labels = context.payload.pull_request.labels || []; | |
| const typeLabels = labels.filter(l => l.name.startsWith('type:')); | |
| if (typeLabels.length !== 1) { | |
| core.setFailed('PR must have exactly one type:* label'); | |
| } |