-
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
automatically ignore template files #633
Conversation
Not sure if I should create a changelog that is |
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick update.
This is a good start.
We can consider it a bugfix.
The tests needs to pass in order to merge this.
Thanks again
Co-authored-by: Adi Roiban <adiroiban@gmail.com>
The documentation also needs to be updated.
Maybe something like this -Some filenames such as .gitignore and README are automatically ignored. However, if a custom template is stored in the news fragment directory, you should add it to this list.
+Some filenames such as .gitignore, README.rst. README.md, and the template file, are automatically ignored. |
Co-authored-by: Adi Roiban <adiroiban@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good. Many thanks for the update.
Sorry for the mess. I will try to get this this merged and then look at doing a new release. |
# Template can be a tuple of (package_name, resource_name). | ||
# | ||
# See https://github.com/twisted/towncrier/issues/634 | ||
ignored_files.add(config.template) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not ok.
We should extract the filename from the filepath.
Automatically ignore template files
Closes #632