-
Notifications
You must be signed in to change notification settings - Fork 19
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
Fix: bug in github username for reviewers) #153
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #153 +/- ##
=======================================
Coverage 58.95% 58.95%
=======================================
Files 8 8
Lines 519 519
Branches 82 82
=======================================
Hits 306 306
Misses 208 208
Partials 5 5 ☔ View full report in Codecov by Sentry. |
@@ -30,12 +30,7 @@ | |||
from pyosmeta.file_io import clean_export_yml, load_pickle | |||
from pyosmeta.github_api import GitHubAPI | |||
from pyosmeta.models import PersonModel | |||
|
|||
|
|||
def get_clean_user(username: str) -> str: |
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.
moved this to the utils module as it makes more sense there.
@@ -61,7 +56,9 @@ def main(): | |||
|
|||
if gh_user not in contribs.keys(): | |||
print("Found a new contributor!", gh_user) | |||
new_contrib = process_contribs.get_user_info(gh_user) | |||
new_contrib = process_contribs.return_user_info( |
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 was the cause of the actual first bug in CI
'githubusername' | ||
""" | ||
|
||
if len(username.split()) > 1: |
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.
Once the above bug was fixed another bug popped up related to a github username entered with a name after (and only a space).
This is a small bug fix. this action hasn't been running in a few weeks because of this.