Skip to content

linear-release fails on GitLab repositories in nested groups #83

Closed

Description

@amirzahavi

Summary

linear-release sync fails when running in a GitLab repository whose project path has nested groups, for example:

[email protected]:my-org/my-group/my-repo.git

The CLI detects GitLab merge request references from commit messages, but cannot parse repository info from nested GitLab remote URLs. It then exits with:

Error: Repository info is required to sync a release with pull request references

Environment

  • linear-release version: v0.11.1
  • CI: GitLab CI
  • Remote URL format: [email protected]:<group>/<subgroup>/<repo>.git

Reproduction

Run linear-release sync in a GitLab CI job for a repository under a nested GitLab group, where the scanned commit range includes GitLab merge commit trailers like:

See merge request my-org/my-group/my-repo!1333

Root Cause

https://github.com/linear/linear-release/blob/v0.11.1/src/index.ts#L408

throw new Error("Repository info is required to sync a release with pull request references");

Root cause before that: repo URL parser rejects nested GitLab paths here:

https://github.com/linear/linear-release/blob/v0.11.1/src/git.ts#L435
https://github.com/linear/linear-release/blob/v0.11.1/src/git.ts#L449

Those regexes only allow host/owner/repo, not host/group/subgroup/repo

Activity

  1. linear-code commented on May 19, 2026

    @linear-code
    Contributor
  2. self-assigned this
    on May 19, 2026
  3. added
    bug
    on May 19, 2026
  4. RomainCscn commented on May 19, 2026

    @RomainCscn
    Collaborator

    Thanks for raising @amirzahavi, I'll take a look.

  5. added 3 commits that reference this issue on May 19, 2026
    26dbed1
    65a5f6c
    9ac2938
  6. RomainCscn commented on May 19, 2026

    @RomainCscn
    Collaborator
  7. amirzahavi commented on May 19, 2026

    @amirzahavi
    Author

    confirmed it is working properly now.
    thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GitLabRelease CLIbug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions