question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Configurable conventional-changelog

See original GitHub issue

I use the conventional-changelog-conventionalcommits preset to generate changelogs, it is configurable and due to the following line it is not possible to configure it with lerna. https://github.com/lerna/lerna/blob/d4a16a59d8d7fa70be177e95e0ef05e9d0680e95/core/conventional-commits/lib/get-changelog-config.js#L26

Instead of a callback it is possible to put a config as the first parameter. Would it be possible to improve this behavior or would you have a solution for it? I wish I could change the types displayed in changelogs.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:5

github_iconTop GitHub Comments

1reaction
dgonzalezrcommented, Jul 20, 2020

With standard-version which also use conventional-commits preset, we’re able to set configurations like:

{
  "header": "# CHANGELOG\n\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Conventional Commits 1.0.0](https://www.conventionalcommits.org/en/v1.0.0/)\nand this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html)\n\n",
  "types": [
    { "type": "feat", "section": "**Features**" },
    { "type": "fix", "section": "**Fixed**" },
    { "type": "chore", "section": "**Commits**" },
    { "type": "docs", "section": "**Commits**" },
    { "type": "refactor", "section": "**Commits**" },
    { "type": "style", "hidden": true },
    { "type": "perf", "hidden": true },
    { "type": "test", "hidden": true }
  ],
  "commitUrlFormat": "https://dev.azure.com/<company>/Design%20System/_git/design-system/commit/{{hash}}",
  "compareUrlFormat": "https://dev.azure.com/<company>/Design%20System/_git/design-system/branchCompare?_a=commits&baseVersion=GT{{previousTag}}&targetVersion=GT{{currentTag}}"
}

Unfortunately, types and compareUrlFormat are completely ignored within changelogPreset on lerna.json 😕

0reactions
bertho-zerocommented, Jul 21, 2020

Is it in the version.changelogPreset config ? You also need a name.

Read more comments on GitHub >

github_iconTop Results From Across the Web

@release-it/conventional-changelog - npm
This plugin will provide the recommended bump to release-it, and update the changelog file (e.g. CHANGELOG.md ). npm install --save-dev @release ...
Read more >
cz-conventional-changelog | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
Changelog entries - GitLab Docs
If your merge request has multiple commits, make sure to add the Changelog entry to the first commit. This ensures that the correct...
Read more >
conventional-changelog-config-emoji - npm package - Snyk
conventional -changelog-config-emoji · Bundles together an ambitious semantic-release shared configuration used across many project types For more ...
Read more >
How To Automatically Generate A Helpful Changelog From ...
The Conventional Commits specification proposes introducing a standardized lightweight convention on top of commit messages. This convention dovetails with ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found