Coder Social home page Coder Social logo

Comments (3)

FilipSwiatczak avatar FilipSwiatczak commented on June 4, 2024 7

Since it doesn't look like conventional-changelog are too hot on fixing #185 (3 years old), here's an easy workaround for Bitbucket Server! It might be same for cloud, not sure

Add following snippet to your package.josn under release -> plugins.
[ "@semantic-release/release-notes-generator", { "preset": "conventionalcommits", "presetConfig": { "commitUrlFormat": "{{host}}/projects/EN/repos/your-repo-name/commits/{{hash}}", "compareUrlFormat": "{{host}}/projects/EN/repos/your-repo-name/compare/diff?targetBranch=refs%2Ftags%2F{{previousTag}}&sourceBranch=refs%2Ftags%2F{{currentTag}}" } } ]

You may notice "your-repo-name" is not {{owner}} since the latter incorrectly begins with en/ for bitbucket.

That will sort you out for both commit links and compare links. Syntax is taken from here: https://github.com/conventional-changelog/conventional-changelog-config-spec/blob/master/versions/2.0.0/README.md#substitutions-1
All the values there go directly into presetConfig, as above. Cheers

from release-notes-generator.

AlbertoGODev avatar AlbertoGODev commented on June 4, 2024 5

This config work for me:

[ "@semantic-release/release-notes-generator", { "preset": "conventionalcommits", "presetConfig": { "commitUrlFormat": "{{host}}/{{owner}}/{{repository}}/commits/{{hash}}", "compareUrlFormat": "{{host}}/{{owner}}/{{repository}}/compare/{{currentTag}}%0D{{previousTag}}#diff", "issueUrlFormat ": "{{host}}/{{owner}}/{{repository}}/issue/{{id}}" } } ]

from release-notes-generator.

pvdlg avatar pvdlg commented on June 4, 2024

We use conventional-changelog/conventional-changelog to generate the content of the changelog.

The problem is over there: conventional-changelog/conventional-changelog#185

from release-notes-generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.