Commit 3d61d25
ci: Enforce conventional commit format for PR titles (#3666)
* ci: Enforce Sentry commit message convention on PR titles
Adds a workflow that fails when a PR title does not match the
`<type>(<scope>)?: <Subject>` convention from
https://develop.sentry.dev/engineering-practices/commit-messages/.
Re-validates on title edits. Can be bypassed with an `ignore-title`
label if ever needed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* ci: Align PR title regex with release.yml categories
- Add `impr`, `enh`, `deps`, `refactor`, `tests` (plural) to match the
types categorized by `.github/release.yml`.
- Allow breaking-change `!` suffix (e.g. `feat!: ...`) consistent with
the Breaking Changes pattern in release.yml.
- Drop `license` — not recognized by release.yml and rare enough to
lose.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs(agents): Add minimal PR description guidance
Document that PR descriptions stay minimal by default and avoid test-plan
checklists unless explicitly requested.
This keeps /create-pr output concise and aligned with repository
expectations.
Co-Authored-By: Codex 5.3 <noreply@openai.com>
Made-with: Cursor
* Revise PR title format for capitalization requirement
Updated PR title format to require capitalization.
* ci: Inline PR title validation workflow
Run title validation directly in github-script, remove the checked-out
local JS helper, and validate associated PRs for merge_group events.
Also relax subject-case enforcement so updater PR titles like
`chore(deps): update ...` continue to pass and map to Dependencies.
Co-Authored-By: Codex 5.3 <noreply@openai.com>
Made-with: Cursor
* ci: Run PR title check on sync updates
Include the pull_request synchronize event so the PR title workflow reruns
when new commits are pushed to an existing pull request.
Co-Authored-By: Codex 5.3 <noreply@openai.com>
Made-with: Cursor
* ci: Remove ignore-label bypass from title check
Drop the ignore-title label escape hatch from the PR title workflow so
all non-draft, non-merged PRs are consistently validated.
Co-Authored-By: Codex 5.3 <noreply@openai.com>
Made-with: Cursor
* ci: Rename PR title check job label
Update the workflow job name to `Check Conventional PR Title` so the
GitHub checks list is more explicit.
Co-Authored-By: Codex 5.3 <noreply@openai.com>
Made-with: Cursor
* ci: Remove merge_group from PR title workflow
Drop merge_group triggering and simplify the script to validate only
pull_request payloads.
This removes an unnecessary code path and avoids misleading merge_group
failure messages.
Co-Authored-By: Codex 5.3 <noreply@openai.com>
Made-with: Cursor
* ci: Enforce capitalized PR titles for humans
Require capitalized PR title subjects for human-authored pull requests
while allowing lowercase starts for automated bot PRs.
Update AGENTS guidance to match the bot exception and keep documented
conventions aligned with CI behavior.
Co-Authored-By: Codex 5.3 <noreply@openai.com>
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Codex 5.3 <noreply@openai.com>1 parent f7e0e8b commit 3d61d25
2 files changed
Lines changed: 86 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
0 commit comments