mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-04 11:55:51 +00:00
27 lines
958 B
YAML
27 lines
958 B
YAML
name: Check PR title
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, edited, reopened, synchronize]
|
|
branches: [develop]
|
|
|
|
jobs:
|
|
check_title:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: ytanikin/pr-conventional-commits@b72758283dcbee706975950e96bc4bf323a8d8c0 # 1.4.2
|
|
with:
|
|
task_types: '["build","feat","fix","docs","test","ci","style","refactor","perf","chore"]'
|
|
add_label: false
|
|
custom_labels: '{"build":"build", "feat":"enhancement", "fix":"bug", "docs":"documentation", "test":"testability", "ci":"ci", "style":"refactoring", "refactor":"refactoring", "perf":"performance", "chore":"tooling"}'
|
|
|
|
- name: Check if message starts with upper-case letter
|
|
env:
|
|
PR_TITLE: ${{ github.event.pull_request.title }}
|
|
run: |
|
|
if [[ ! "${PR_TITLE}" =~ ^[a-z]+:\ [\[A-Z] ]]; then
|
|
echo "Error: PR title must start with an upper-case letter."
|
|
exit 1
|
|
fi
|