PR Naming Enforcement
Ensure consistent PR naming conventions across your team.
Overview
PR naming enforcement helps maintain consistent conventions across your team. Jasper can validate PR titles against configurable patterns and enforce compliance through GitHub Checks.
Setting Up PR Naming Rules
Configure PR Naming
Set up your PR naming rules in the dedicated settings page.
Open PR Naming Settings- Navigate to Settings → PR Naming
- Define your naming pattern (e.g.,
[TICKET-ID] type: description) - Configure allowed types (feat, fix, docs, etc.)
- Set enforcement level
Enforcement Levels
| Level | Behavior |
|---|---|
| Warn | Show warning in review but allow merge |
| Block | Fail the GitHub Check, prevent merge until fixed |
| Auto-fix | Suggest corrected titles automatically |
Example Patterns
| Pattern | Valid Example |
|---|---|
[CU-ID] type: description |
[CU-abc123] feat: add user login |
type(scope): description |
feat(auth): implement SSO |
PROJ-123: description |
PROJ-456: fix navigation bug |
Common Types
Recommended conventional commit types:
feat- A new featurefix- A bug fixdocs- Documentation changesstyle- Formatting, missing semicolons, etc.refactor- Code restructuring without feature changestest- Adding or updating testschore- Maintenance tasks
GitHub Check Integration
When enforcement is enabled, Jasper creates a GitHub Check that:
- Runs automatically when PRs are opened or updated
- Shows pass/fail status in the PR checks section
- Provides detailed feedback on naming issues
- Can block merging if configured to "Block" level
Next Steps
- Ticket Templates - Define task description standards