Skip to content

PROC-1513: accept Conventional Commit titles with Linear ID in scope#6

Merged
saicheems merged 1 commit into
gradienthealth:mainfrom
CalNightingale:CalNightingale/allow-conventional-commit-titles
Apr 21, 2026
Merged

PROC-1513: accept Conventional Commit titles with Linear ID in scope#6
saicheems merged 1 commit into
gradienthealth:mainfrom
CalNightingale:CalNightingale/allow-conventional-commit-titles

Conversation

@CalNightingale
Copy link
Copy Markdown
Contributor

Summary

Widen the PR title check so titles like feat(ENG-123): add feature are accepted in addition to the existing ENG-123: ... and NO-ISSUE: formats.

Why

Adopting release-please in cloud_optimized_dicom (see PR #97) requires PR titles to start with a Conventional Commit type prefix (feat:, fix:, chore:, etc.) so the bot can decide the next version. The existing org-level check requires the Linear ID at the very start, which conflicts. Putting the Linear ID inside the conventional-commit scope (feat(ENG-123): ...) satisfies both worlds, but the current regex doesn't recognize it.

Change

Two new branches added to the existing if/elif chain:

  • Conventional Commit with Linear ID in scope: feat(ENG-123): add feature
  • Conventional Commit with NO-ISSUE opt-out: chore: NO-ISSUE refactor internals

Existing formats continue to pass — pure superset, zero behavior change for repos not adopting Conventional Commits.

Test plan

  • Title ENG-123: existing format → passes (unchanged)
  • Title feat(ENG-123): new format → passes (new)
  • Title NO-ISSUE: opt-out → passes (unchanged)
  • Title chore: NO-ISSUE thing → passes (new)
  • Title random title with no marker → fails

Allow titles like 'feat(ENG-123): add feature' so repos using release-please can keep Linear issue association without breaking the existing check. Existing 'ENG-123: ...' and 'NO-ISSUE:' formats remain valid.
@CalNightingale CalNightingale changed the title ci: accept Conventional Commit titles with Linear ID in scope PROC-1513: accept Conventional Commit titles with Linear ID in scope Apr 21, 2026
@saicheems saicheems merged commit 7a84dcf into gradienthealth:main Apr 21, 2026
1 of 2 checks passed
@CalNightingale CalNightingale deleted the CalNightingale/allow-conventional-commit-titles branch April 21, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants