Skip to content

feat(design): redesign - part 2 #2220

feat(design): redesign - part 2

feat(design): redesign - part 2 #2220

Workflow file for this run

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