You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Release CLI: --issue-pattern flag to extract issue IDs from custom subject formats (e.g. Conventional Commits) #106
Issue identifiers are extracted from a commit subject only when the identifier leads the subject. The three built-in subject conventions in src/extractors.ts (COMMON_SUBJECT_PATTERNS) are all start-anchored:
[ENG-123] My change
(ENG-123) My change
ENG-123: My change
Teams that follow Conventional Commits put the identifier after the type and optional scope, so none of these match and the issue is never linked to the release:
(fix[ENG-123] also slips past the fix magic-word path, since that path requires whitespace/colon after the keyword, not [.)
--include-subjects doesn't help here — it's a filter (decides which commits to scan), not an extractor (it can't tell the CLI where the identifier lives within the subject). There's currently no way to teach the scanner a custom subject convention.
Proposal
Add a --issue-pattern=<regex> flag for sync. The user supplies a regex whose first capture group is the team key and second capture group is the issue number:
Matched against the commit subject (first line only), consistent with --include-subjects and the built-in subject patterns.
Scanned globally, so a subject may carry more than one identifier.
Case-insensitive; team key upper-cased and leading zeros stripped (eng-0045 → ENG-45); numbers written with a leading zero are rejected, matching parseMatch.
Additive — merged with the existing branch-name / magic-word / built-in-subject detection and de-duplicated, not a replacement.
Validated at parse time: the regex must compile and have at least two capturing groups (helpful error otherwise).
This keeps the default detection untouched while giving teams an escape hatch for any subject convention the built-ins don't recognize.
Happy to send a PR (already drafted, with unit tests + README docs).
changed the title [-]feat: --issue-pattern flag to extract issue IDs from custom subject formats (e.g. Conventional Commits)[/-][+]Release CLI: --issue-pattern flag to extract issue IDs from custom subject formats (e.g. Conventional Commits)[/+]on Jun 9, 2026
Reopening — there's a sharper framing than "support arbitrary conventions".
Our commit/PR titles look like:
feat(vehicle)[LMC-123]: some commit reason
That's just Conventional Commits with the Linear ID in brackets after the type(scope). Linear itself already recognizes this — it auto-links the PR to LMC-123 (the issue shows the PR under its Links), so the format is unambiguously valid as far as Linear's own detection goes.
But linear-release does not match it. The built-in subject patterns are start-anchored — [LMC-123] …, (LMC-123) …, LMC-123: … — so an identifier sitting after feat(vehicle) is never extracted, and the issue is dropped from the release even though Linear has already linked the very same PR to that issue.
So this isn't a request for an exotic convention — it's an inconsistency between Linear's own PR auto-linking and what the release CLI scans. At minimum the CLI should recognize the same type(scope)[ID]: shape Linear already does.
(#71 previously proposed a general --issue-id-pattern regex flag for exactly this and was closed unmerged.)
it's an inconsistency between Linear's own PR auto-linking and what the release CLI scans
Our team suffixes ID(s), e.g. fix(scope): color button red DEV-123 DEV-124. As per consistency argument, the Linear PR auto-linking picks it up with no issues, and so the release CLI scan should as well.
Hi team @RomainCscn@axelniklasson please please can you merge this feature in, linear releases virtually unusable without it - using conventional commits is necessary for deploying with semantic release which is a common deployment pattern and so this feels quite uncontroversial!
Activity
linear-code commentedon Jun 9, 2026
LIN-74725
[-]feat: --issue-pattern flag to extract issue IDs from custom subject formats (e.g. Conventional Commits)[/-][+]Release CLI: --issue-pattern flag to extract issue IDs from custom subject formats (e.g. Conventional Commits)[/+]olsavmic commentedon Jun 9, 2026
Reopening — there's a sharper framing than "support arbitrary conventions".
Our commit/PR titles look like:
That's just Conventional Commits with the Linear ID in brackets after the
type(scope). Linear itself already recognizes this — it auto-links the PR toLMC-123(the issue shows the PR under its Links), so the format is unambiguously valid as far as Linear's own detection goes.But
linear-releasedoes not match it. The built-in subject patterns are start-anchored —[LMC-123] …,(LMC-123) …,LMC-123: …— so an identifier sitting afterfeat(vehicle)is never extracted, and the issue is dropped from the release even though Linear has already linked the very same PR to that issue.So this isn't a request for an exotic convention — it's an inconsistency between Linear's own PR auto-linking and what the release CLI scans. At minimum the CLI should recognize the same
type(scope)[ID]:shape Linear already does.(#71 previously proposed a general
--issue-id-patternregex flag for exactly this and was closed unmerged.)Akuukis commentedon Jul 9, 2026
Our team suffixes ID(s), e.g.
fix(scope): color button red DEV-123 DEV-124. As per consistency argument, the Linear PR auto-linking picks it up with no issues, and so the release CLI scan should as well.DanCorvesor commentedon Jul 23, 2026
Hi team @RomainCscn @axelniklasson please please can you merge this feature in, linear releases virtually unusable without it - using conventional commits is necessary for deploying with semantic release which is a common deployment pattern and so this feels quite uncontroversial!