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

enhance method _get_repo_name_from_url to handle case when .git is part of the repo name #240

Merged
merged 8 commits into from
Dec 7, 2022

Conversation

hatrg
Copy link
Contributor

@hatrg hatrg commented Dec 4, 2022

Related issue #236

@codecov
Copy link

codecov bot commented Dec 4, 2022

Codecov Report

Merging #240 (ff7c6de) into master (b9da1df) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #240   +/-   ##
=======================================
  Coverage   98.08%   98.09%           
=======================================
  Files          14       14           
  Lines        1046     1048    +2     
=======================================
+ Hits         1026     1028    +2     
  Misses         20       20           
Impacted Files Coverage Δ
pydriller/repository.py 100.00% <100.00%> (ø)

@ishepard
Copy link
Owner

ishepard commented Dec 5, 2022

Can you add a couple of tests for this function? I think there are already some tests written, you can simply add a couple of new ones with git in the middle.

@hatrg
Copy link
Contributor Author

hatrg commented Dec 6, 2022

Tests added @ishepard, let me know if it's OK with you, not very confident with where I placed the tests :D

@hatrg
Copy link
Contributor Author

hatrg commented Dec 7, 2022

hmm, not sure why the check on windows-latest is failed yet

@hatrg
Copy link
Contributor Author

hatrg commented Dec 7, 2022

ok now it's passed 🤯

@ishepard ishepard merged commit 1dd9606 into ishepard:master Dec 7, 2022
@ishepard
Copy link
Owner

ishepard commented Dec 7, 2022

Yeah not your fault, windows is a bit flaky 😄 thanks for the PR!!!

@hatrg hatrg deleted the enhance-get-repo-name-by-url-method branch December 7, 2022 15:04
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.

None yet

2 participants