-
Notifications
You must be signed in to change notification settings - Fork 122
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
Check for invalid filenames in changes.d/
#619
Comments
Hi Ronnie. Thanks for the report. I am not sure what is requested here. Just asking :) Can you please define what is considered a "valid fragment file name" ? How else, other that via
You can create I would say that you should start using |
And invalid one would fail |
(We have a checklist item for this. Creating fragments when they're not needed seems like more effort than it's worth) |
I am still not sure how you are expecting to have this implemented. If you have time, consider creating a pull request with a suggestion on how to fix this issues. As long as it doesn't breaks backward compatibility, it has good documentation and automated tests, we can have the PR merged. |
Sorry, missed this question. Maybe something like a It would be nice to have, but I'm kind of limited on time to put into making a PR myself |
Thanks for the clarification. I am leaving this issue open. Anyone else who is affected by this missing functionality can submit a PR with a fix for this issue. I would still prever to have One option is to have this as a flag for
|
@adiroiban I had a quick go at this, turned out to be pretty easy. Let me know what you think: #622 |
My need would be:
In the mean time, I went with a custom python script to validate on the CI: So did pyinstaller: |
Thanks Avasam for the feedback. We have PR #622 which tries to fix this issue. If you have time, please consider reviewing the PR and leave your feedback for the proposed fix. Thanks |
Although
towncrier create
enforces valid fragment file names, creating a fragment file manually can sometimes lead to mistakes in the file name. It would be useful to include in our CI a check that all files inchanges.d/
have valid fragment file names (excludingchangelog-template.jinja
of course).Note we don't use
towncrier check
as we don't create fragments for small or non-user-facing changes.The text was updated successfully, but these errors were encountered: