release-it / conventional-changelog

Conventional changelog plugin for release-it
MIT License
125 stars 38 forks source link

Compare-Link in CHANGELOG.md broken #79

Open matthiasritter opened 10 months ago

matthiasritter commented 10 months ago

Hi, since a few version we recognize, that the compare-link is broken: Our ".release-it.json"-Configfile:

{
  "git": {
    "commitMessage": "chore: bump ${version}",
    "tag": false,
    "requireUpstream": false
  },
  "plugins": {
    "@release-it/conventional-changelog": {
      "preset": "conventionalcommits",
      "infile": "CHANGELOG.md"
    }
  }
}

What it looks like and what it looked like:

## [0.37.0](///compare/0.36.1...0.37.0) (2023-11-23)

### Features

* add feature abc 15dd5fa

### [0.36.1](https://gitlab.our-company.com/project/modules/very-cool-module/compare/0.36.0...0.36.1) (2023-11-22)

### Features

* add feature 123 3523d5f

Used Versions:

webpro commented 8 months ago

I this the same issue as #82?

Either way, feel free to open a PR with a fix.

YOEL311 commented 8 months ago

@matthiasritter you can use compareUrlFormat config option

see here https://github.com/release-it/conventional-changelog/issues/82#issuecomment-1966345905

matthiasritter commented 8 months ago

Hi @YOEL311 , thank you for your answer. Unfortunately that did not work for self-hosted gitlab.

YOEL311 commented 8 months ago

@matthiasritter can you share your package.json file?