-
Notifications
You must be signed in to change notification settings - Fork 123
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
feat(settings): Add support to configure fragment types via tables #370
Conversation
Codecov Report
@@ Coverage Diff @@
## master #370 +/- ##
==========================================
+ Coverage 96.85% 97.04% +0.19%
==========================================
Files 20 22 +2
Lines 1241 1321 +80
Branches 120 126 +6
==========================================
+ Hits 1202 1282 +80
Misses 20 20
Partials 19 19
Continue to review full report at Codecov.
|
c4706a5
to
4080a3f
Compare
cd87381
to
f72252b
Compare
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.
Many thanks for the changes.
So we can have [tool.towncrier.fragment.chores] or [tool.towncrier.fragment.feat].
I am a bit (just a bit) worried about possible future conflicts.
So, as you think is best.
We can play safe and go with the more verbose [tool.towncrier.fragment.chores]
as long as this is documented, it should be fine.
I am ok with any change that makes you happy :) as long as it has tests to prevent any future regressions. My only concern is that we should try to get it right, so that in the future we will not have to also deprecate this method :) So, maybe play it safe and go with Thanks again |
f72252b
to
c2dc917
Compare
So, maybe we should go with something like this
It's more verbose, but we don't risk any colision. I think that if we place everything inside |
Ok, cool. I will use the keys of "tool.towncrier.fragment" mapping to get the fragments instead of using "fragment_types" array then. |
c2dc917
to
0220f11
Compare
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.
Looks good. Many thanks.
I left a few minor comments.
Other than that, I think that this is ready to merge.
* Add support to toml tables for custom fragments, with default values. Resolves: twisted/twisted#369 Signed-off-by: danieljmv01 <danieljmv01@gmail.com>
0220f11
to
bda743b
Compare
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.
All good. Thanks.
let's merge this.
We need to remove the duplication of docs from README and docs/ , but that can be don in a separate PR.
Thanks!
with default values.
Resolves: twisted/#369
Signed-off-by: danieljmv01 danieljmv01@gmail.com