Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated link to commits/tags is wrong #93

Closed
slhck opened this issue Feb 27, 2019 · 2 comments
Closed

Generated link to commits/tags is wrong #93

slhck opened this issue Feb 27, 2019 · 2 comments

Comments

@slhck
Copy link

slhck commented Feb 27, 2019

I am using auto-changelog v1.11.0.

The repository, which is hosted on a GitLab server, has the following remotes:

➜ git remote -v
origin  [email protected]:foo/bar-baz/foo-bar.git (fetch)
origin  [email protected]:foo/bar-baz/foo-bar.git (push)

I generate the changelog:

➜ auto-changelog
auto-changelog: 81 kB written to CHANGELOG.md

When I inspect the changelog:

➜ head CHANGELOG.md
### 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).

#### [v0.52.1](https://git.example.com/foo/bar-baz/compare/v0.50.7...v0.52.1)

> 21 February 2019

As you can see, the link foo/bar-baz/compare is missing the project name (foo-bar).

The correct link would be:

https://git.example.com/foo/bar-baz/foo-bar/compare/v0.50.7...v0.52.1
@slhck
Copy link
Author

slhck commented Apr 22, 2021

I am coming back to this issue since I still observe wrong detection of remotes …

I have a remote [email protected]:group/subgroup/repo.git, but auto-changelog generates a changelog URL like https://git.example.com/group/subgroup/compare/v1.12.2...v1.12.3.

Should this not work automatically for GitLab remotes?

This is with [email protected].

@vigohe
Copy link
Contributor

vigohe commented Mar 7, 2022

As @slhck commented, It does not work with subgroup repository

vigohe pushed a commit to vigohe/auto-changelog that referenced this issue Mar 7, 2022
Refs: cookpete#93
Signed-off-by: Victor Godoy <[email protected]>
vigohe pushed a commit to vigohe/auto-changelog that referenced this issue Mar 7, 2022
Refs: cookpete#93
Signed-off-by: Victor Godoy <[email protected]>
vigohe pushed a commit to vigohe/auto-changelog that referenced this issue Mar 7, 2022
Refs: cookpete#93
Signed-off-by: Victor Godoy <[email protected]>
vigohe pushed a commit to vigohe/auto-changelog that referenced this issue Mar 7, 2022
Refs: cookpete#93
Signed-off-by: Victor Godoy <[email protected]>
vigohe added a commit to vigohe/auto-changelog that referenced this issue Mar 7, 2022
Refs: cookpete#93
Signed-off-by: Victor Godoy <[email protected]>
cookpete pushed a commit that referenced this issue Sep 11, 2024
Refs: #93

Signed-off-by: Victor Godoy <[email protected]>
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

No branches or pull requests

2 participants