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: use custom preset for conventional-changelog-cli

See original GitHub issue

When using conventional-changelog-cli we can use a custom preset with the -p [preset] flag. For example, I usually follow a committing style that is very similar to eslint, so I usually use -p eslint and get the expected result.

Can you add a option/flag that allows us to change the currently used preset for --conventional-commits. Currently it seems to be hard coded to use the angular preset (src/ConventionalCommitUtilities.js, lines #30 and #59).

Example option/flag, usable only with lerna publish:

-p, --conventional-preset   Change the preset for conventional-changelog

Example lerna.json option, either at the root or command.publish namespace:

"conventionalCommits": true,
"conventionalPreset": "eslint" // defaults to null

If no preset option is passed (or is null or false in the config file), the -p flag should be omitted from the call to conventional-changelog-cli, allowing for default behaviour.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
evocateurcommented, Apr 26, 2017

@bcoe ?

I’d rather it just be an extension of the existing --conventional-commits flag, basically turning the boolean into an implicit --conventional-commits angular.

0reactions
lock[bot]commented, Dec 27, 2018

This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

conventional-changelog-custom-log - npm package - Snyk
Use the Conventional Changelog CLI Quick Start with the -p conventionalcommits option. Direct Usage (as a base preset so you can customize it)....
Read more >
Conventional Commits
The Conventional Commits specification is a lightweight convention on top of commit messages. It provides an easy set of rules for creating an...
Read more >
conventional-changelog-frontend - NPM Package Overview
Use the Conventional Changelog CLI Quick Start with the -p conventionalcommits option. Direct Usage (as a base preset so you can customize it)....
Read more >
git - Why does my old commits re-appear every time I update ...
My script in package.json looks like this: "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r && git add CHANGELOG ...
Read more >
Conventional-changelog NPM - npm.io
NOTE: options.config will be overwritten by the values of preset. You should use either preset or config , but not both. Notes for...
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