Skip to content

Commit 4cab9da

Browse files
committed
ci(template): add pr-title check and changelog baseline
1 parent 8bf57d3 commit 4cab9da

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/workflows/ci-pr-title.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI (PR Title)
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, edited, synchronize, reopened]
6+
7+
jobs:
8+
pr-title:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Validate PR title
12+
env:
13+
PR_TITLE: ${{ github.event.pull_request.title }}
14+
run: |
15+
set -euo pipefail
16+
regex='^(feat|fix|docs|chore|refactor|test|ci|build|perf|revert)(\([a-z0-9._/-]+\))?!?: .+$'
17+
if [[ ! "$PR_TITLE" =~ $regex ]]; then
18+
echo "Invalid PR title: $PR_TITLE"
19+
echo "Expected format: <type>(<scope>): <summary>"
20+
echo "Allowed types: feat|fix|docs|chore|refactor|test|ci|build|perf|revert"
21+
exit 1
22+
fi

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changelog
2+
3+
All notable changes to this template are documented here.
4+
5+
## [0.1.0] - 2026-02-28
6+
7+
### Added
8+
- Governance maturity baseline and doctrine snapshot integration.
9+
- Core/advisory CI and template validation alignment.
10+
- Commit message policy guidance aligned to Doctrine.

0 commit comments

Comments
 (0)