Skip to content

Commit 0a4d874

Browse files
committed
ci: enforce conventional commit PRs
1 parent e231bfc commit 0a4d874

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 🔄 CI | Agent Control Config Drift
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
check-pr-name:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Assert PR name adhering to conventional commits
12+
run: |
13+
gh pr view ${{ github.event.number }} --json title
14+
| jq --args '.title | test("\\w+: \\w+")' -e 1 || {
15+
gh pr comment ${{ github.event.number }} \
16+
--body "PR title does not adhere to conventional commits. Change PR title to ensure that the suggested squash commit follows the conventions and thus ends up in the changelog."
17+
}

0 commit comments

Comments
 (0)