build(deps): bump ai from 6.0.235 to 7.0.31 #2224
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: Lint PR Title | |
| on: | |
| pull_request: | |
| types: [opened, edited, synchronize] | |
| permissions: | |
| pull-requests: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: Validate PR title | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check legacy THU-XXX format | |
| id: legacy | |
| env: | |
| PR_TITLE: ${{ github.event.pull_request.title }} | |
| run: | | |
| if [[ "$PR_TITLE" =~ ^THU-[0-9]+:[[:space:]].+ ]]; then | |
| echo "matches=true" >> "$GITHUB_OUTPUT" | |
| echo "PR title uses legacy THU-XXX format; skipping Conventional Commits check." | |
| else | |
| echo "matches=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Validate Conventional Commits format | |
| if: steps.legacy.outputs.matches != 'true' | |
| uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| types: | | |
| feat | |
| fix | |
| chore | |
| docs | |
| refactor | |
| perf | |
| test | |
| ci | |
| build | |
| style | |
| requireScope: false |