Skip to content

feat: improve deploy and test script robustness #3643

feat: improve deploy and test script robustness

feat: improve deploy and test script robustness #3643

name: PR Title Validation
on:
pull_request:
types: [opened, edited, synchronize]
permissions:
contents: read
pull-requests: read
jobs:
validate-pr-title:
name: Validate PR Title
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Validate PR Title Format
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Configure the allowed types
types: |
feat
fix
docs
style
refactor
perf
test
build
ci
chore
revert
# Allow breaking changes
requireScope: false
# Allow empty scope
allowMergeCommits: true
# Disable validation for draft PRs
ignoreLabels: |
draft
wip
# Configure the subject pattern
subjectPattern: ^(?![A-Z]).+$
subjectPatternError: |
The subject "{subject}" found in the pull request title "{title}" didn't match the configured pattern. Please ensure that the subject doesn't start with a capital letter.
# Configure the subject pattern error
validateSingleCommit: false
# Configure the body pattern (optional)
bodyPattern: ^.*$
bodyPatternError: |
The pull request body didn't match the configured pattern.
# Configure the body pattern error
ignoreLabelsForTitle: |
draft
wip
# Configure the body pattern error
ignoreLabelsForBody: |
draft
wip