phly / keep-a-changelog

Tools for manipulating CHANGELOG.md files in Keep A Changelog format, including tagging and releasing.

Home Page:https://phly.github.io/keep-a-changelog/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Command `release` with global configuration

michalbundyra opened this issue · comments

I have created global configuration with token. I was expected that it will be used on release, but I have to do it manually and I think the message is not clear that I can use global configuration.

What I would suggest is to have fallback to global configuration if there is no local configuration or at least change the error message to suggest maybe using global configuration if provided. Now we have:

$ keep-a-changelog release webimpress/my-package 1.0.0
No token provided, and could not find it in the config file /home/Code/my-package/.keep-a-changelog.ini
Please provide the --token option, or create the config file with the config command

Configuation is completely revamped for version 2.0.0. If a token is specified for the requested provider within the global configuration, it will be used — unless you specify a different one via the --provider-token option.

Tokens are no longer allowed in local configuration, as it is too easy to check it in to your repository by accident, and file permissions are not secure.