Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Global Path for Config File or Replace Text in CLI #127

Closed
ahmadawais opened this issue Jul 29, 2019 · 6 comments
Closed

Allow Global Path for Config File or Replace Text in CLI #127

ahmadawais opened this issue Jul 29, 2019 · 6 comments

Comments

@ahmadawais
Copy link

@cookpete I wish if we could define a global .auto-changelog something like CLI would take global config path for projects where I don't have to install auto-changelog as a dep but a global install would work.

Right now I am doing this:

auto-changelog --package --unreleased --output 'CHANGELOG.md' --commit-limit 'false' --template '/Users/ahmadawais/Dropbox/bin/changelog.hbs'

But I can't seem to be able to add the following settings in the CLI

{
	"replaceText": {
		"(NEW|IMPROVE|FIX|DOC|RELEASE|TEST): ": ""
	}
}

I wish I could set a global config file to use with all the settings.

Or you can allow --replace-text option for CLI that would also solve my problem here.

@cookpete
Copy link
Owner

There is already support for .auto-changelog as per 89c8b44. What specifically is not working?

replaceText is not a CLI option due to the complexity of the configuration.

@ahmadawais
Copy link
Author

@cookpete can you allow something where a global .auto-changelog file could be used instead of a local repo file? An option do define the path of .auto-changelog file via CLI is all I need.

@cookpete
Copy link
Owner

Ah I get you now. Yeah this is a good idea. I've added --config or -c to auto-changelog@1.15.0

@ahmadawais
Copy link
Author

Woohoo! 🥳🥳🥳Thank you! 👌

@ahmadawais
Copy link
Author

I can confirm it's working :)

@lucasrusso95
Copy link

@ahmadawais How you can resolve this? I have a config in .auto-changelog and i tried to put the replaceText in package.json. It's not working with both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants