Skip to content

Commit b376915

Browse files
lucasloispclaude
andauthored
ci: add PR title conventional commits check (#28)
* ci: add PR title conventional commits check Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Committed-By-Agent: claude * ci: pin ubuntu-24.04 and add explicit permissions block Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Committed-By-Agent: claude * ci: disable label creation and narrow permissions to read-only Committed-By-Agent: claude --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9beee58 commit b376915

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/pr-title.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: PR Title
2+
on:
3+
pull_request:
4+
types: [opened, edited, synchronize, reopened]
5+
6+
permissions:
7+
pull-requests: read # Read PR details
8+
contents: read # Read repository content
9+
10+
jobs:
11+
conventional-commits:
12+
timeout-minutes: 5
13+
name: conventional-commits
14+
runs-on: ubuntu-24.04
15+
steps:
16+
- uses: ytanikin/pr-conventional-commits@639145d78959c53c43112365837e3abd21ed67c1
17+
with:
18+
task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert","style","build"]'
19+
add_label: 'false'

CONTRIBUTING.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,25 @@
22

33
For questions or support, email <support@privy.io>.
44

5+
## Pull requests
6+
7+
PR titles **must** follow [Conventional Commits](https://www.conventionalcommits.org/) format:
8+
9+
```
10+
type(optional scope): description
11+
```
12+
13+
Allowed types: `feat`, `fix`, `docs`, `test`, `ci`, `refactor`, `perf`, `chore`, `revert`, `style`, `build`.
14+
15+
Examples:
16+
17+
```
18+
feat: add wallet balance endpoint
19+
fix(auth): handle expired tokens
20+
chore: update dependencies
21+
```
22+
23+
A CI check will block merge if the PR title does not match this format.
524

625
### Code style & formatting
726

0 commit comments

Comments
 (0)