Skip to content
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

Merged
merged 2 commits into from
May 7, 2024

Conversation

lwasser
Copy link
Member

@lwasser lwasser commented May 7, 2024

This is a small bug fix. this action hasn't been running in a few weeks because of this.

Copy link

codecov bot commented May 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.95%. Comparing base (6c8e66c) to head (408fbe8).
Report is 4 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

@@ -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:
Copy link
Member Author

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(
Copy link
Member Author

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:
Copy link
Member Author

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).

@lwasser lwasser merged commit c730c5c into pyOpenSci:main May 7, 2024
2 checks passed
@lwasser lwasser deleted the fix-username branch May 7, 2024 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant