geut / chan

A Changelog CLI based on http://keepachangelog.com/
ISC License
87 stars 10 forks source link

Add new config `--release-prefix` for addRelease and createGithubRelease #63

Closed WengerK closed 3 years ago

WengerK commented 3 years ago

💬 Describe the pull request

For now, the chan-cli and chan-core packages use an hardcoded release/tag prefix v. Used for tagging release & gh-release. Some company or person may need to handle the version tagging with another or no prefix.

This PR intend to allow anybody to choose another prefix by using a new configuration named --release-prefix.

🔢 To Review

Steps to review the PR:

chan release

  1. use the new --release-prefix
  2. the resulting CHANGELOG.md file must use the chosen prefix

chan gh-release

  1. use the new --release-prefix
  2. the github redirection should use the chosen prefix

chanrc, chanrc.json, package.json

  1. add the new config key release-prefix into one of chanrc, chanrc.json, package.json
  2. when using both chan release or chan gh-release the release must be prefixed with the configured value
elmasse commented 3 years ago

Hey @WengerK

Thank you so much for taking the time to contribute to chan! I have merged this PR and a new release v3.2.0 has been published.

Again, thanks for your time and for using chan! Max