Comments (3)
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.
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.
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)
- Upgrade peer dependency semantic-release to version 19.0.3 or later to fix known vulnerability HOT 1
- Refactor & chore commits not getting includes in changelog HOT 3
- Release notes generation with Bitbucket
- question: link to both GH PR numbers and external issues
- Question: conventionalcommits preset with PR owner
- Defining the commitPartial voids other wirter and presetConfig options
- I need to include other commits than `feat` and `fix`. HOT 3
- Sort commit sections HOT 11
- An error occurred while running semantic-release: Error [ERR_REQUIRE_ESM] HOT 7
- wrong Gitlab issue link in release notes HOT 20
- Plugin ends up abruptly without completition or error, making other plugins not to start HOT 12
- Wrong commit link for Bitbucket HOT 3
- `release skip`-ed commits still get into release notes
- Links to PRs and Contributors list HOT 2
- `MODULE_NOT_FOUND` when running with `npx` HOT 4
- Unexpected behavior for major updates with conventionalcommits preset HOT 2
- self-hosted GitLab - no issue links in release notes
- Question: Merging pre-release branches & generated changelog
- Question: Mirror release rules to release notes generator? HOT 1
- Question: how can i gruop no-scope commits on a section in release notes generator configuration ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from release-notes-generator.