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

"commitsSince" not recognized #360

Closed
MGatner opened this issue Sep 17, 2022 · 4 comments · Fixed by #362
Closed

"commitsSince" not recognized #360

MGatner opened this issue Sep 17, 2022 · 4 comments · Fixed by #362
Labels

Comments

@MGatner
Copy link

MGatner commented Sep 17, 2022

When I drop in the example config (modified or verbatim) I get the following warning on launch:

Unrecognized configuration keys: commitsSince

Fresh install of church as composer require --dev, both pulled version 1.7.0. I don't see any other reports of this so far; I will dig through the config code and bit and see if anything is apparent.

@MGatner
Copy link
Author

MGatner commented Sep 17, 2022

It is because the configuration string is actual the singular commitSince:

parent::__construct('commitSince');

The Validator is actually the plural though as well. Need a maintainer to advise, then I can send a PR one way or another.

@villfa
Copy link
Collaborator

villfa commented Sep 17, 2022

Thank you for the report!

The right key is commitsSince.
This regression exists since 1.6.0 and has been introduced by 1b59a42.

In my opinion we should support the 2 spellings just in case some users already use the singular form.
However the usage of commitSince must trigger a deprecation message indicating it won't be supported in the next major version.

@villfa
Copy link
Collaborator

villfa commented Sep 18, 2022

FYI the fix has been released with Churn 1.7.1 :)

@MGatner
Copy link
Author

MGatner commented Sep 19, 2022

🥳🎉🎊

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

Successfully merging a pull request may close this issue.

2 participants