-
Notifications
You must be signed in to change notification settings - Fork 25
schema: reviewers can be empty now + parsing: handle bold/italics formatting #310
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
base: main
Are you sure you want to change the base?
Conversation
Update get_contributor_data method to return None when no models are found.
return None instead of trying to instantiate a ReviewUser
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 looks good
👋🏻 Hello there. I need to allow tests to run on all incoming pr's. it looks like the tests are still failing here. Let me fix the settings for the repo to ensure tests always run. |
Refactor user model parsing to handle empty lists.
workflow for ae652fb failed because of an unrelated connection error. I checked the URL manually and it worked, so I assume this was just a temporary blip. |
early return when we're missing a ReviewUser / fail to validate the PersonModel (skip behavior to align with the existing log statement)
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #310 +/- ##
==========================================
- Coverage 79.47% 79.05% -0.42%
==========================================
Files 12 12
Lines 760 764 +4
Branches 98 100 +2
==========================================
Hits 604 604
- Misses 144 146 +2
- Partials 12 14 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
there's a contributor that's being processed with * in their name. stripping this character should allow them to be processed as a PersonModel (in theory)
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.
Nice fix to the spec
Strip markdown formatting from returned value.
it seems that pyOpenSci/software-submission#254 broke things in two ways:
|
"""Remove unwanted characters from a name.""" | ||
|
||
unwanted = ["(", ")", "@"] | ||
unwanted = ["(", ")", "@", "*"] |
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.
arguably, not needed anymore since this is stripped during parsing time. it did help earlier but only for the username, not the package name.
unwanted = ["(", ")", "@", "*"] | |
unwanted = ["(", ")", "@"] |
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 looks good, nice fix @mathematicalmichael! Thanks for jumping on this!
Added details for version 1.7.6 including bug fix and feature.
This change updates
reviewers
to acceptNone
and defaults to it instead of an empty list.+also includes bugfix for bold/italics formatting in values of the templated issue, introduced by the same submission