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

Support auto creation of local config file #120

Open
chelnak opened this issue Feb 9, 2023 · 2 comments
Open

Support auto creation of local config file #120

chelnak opened this issue Feb 9, 2023 · 2 comments

Comments

@chelnak
Copy link
Owner

chelnak commented Feb 9, 2023

gh-changelog now supports config files in the current directory however today it wont create them.

Users are required to copy the default config from ~/.config/gh-changelog/.changelog.

In the future, it would be nice to have some sort of gh changelog init command that creates us a new config file in the local directory.

chelnak added a commit that referenced this issue Apr 12, 2023
Prior to this change, a .changelog.yml would always be created in the
current working directory.

The local config file should be optional and only used when users need
to override certain values.

To restore the original functionality we now use SafeWriteConfigAs to
ensure the config is placed in the expected directory on first run.

The ability to initialize local config should be fixed in #120.
@ssbarnea
Copy link

ssbarnea commented Sep 3, 2024

I would add the it would be cool if the config could also be loaded from the .github folder, so we avoid cluttering the project root directory.

@chelnak
Copy link
Owner Author

chelnak commented Sep 4, 2024

I like this idea. It could work nicely as the extension is coupled with the cli anyway.

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

2 participants