Skip to content

GitLab URL is wrong, missing subgroups and project name #299

@slhck

Description

@slhck

The changelog URLs for GitLab projects are wrong:

$ git remote -v                                               
origin  https://git.example.com/foo/bar/baz/project.git (fetch)
origin  https://git.example.com/foo/bar/baz/project.git (push)

The changelog reads:

npx auto-changelog --stdout --unreleased-only | head
### Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [Unreleased](https://git.example.com/foo/bar/compare/v2.0.2...HEAD)

- fix: something [`422fda4`](https://git.example.com/foo/bar/commit/422fda46601a057d2e1a074ff8b47c1595dea39e)
- fix: something else [`e8c66de`](https://git.example.com/foo/bar/commit/e8c66de1845d5c0c1cdb570609bf7983c55daf44)

Note that the last subgroup and project are missing.

Expected:

https://git.example.com/foo/bar/baz/project/commit/422fda46601a057d2e1a074ff8b47c1595dea39e

Alternatively, what GitLab redirects to:

https://git.example.com/foo/bar/baz/project/-/commit/422fda46601a057d2e1a074ff8b47c1595dea39e

This is using v2.5.0 with a GitLab 18.5 instance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions