-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add additional test coverage for common functions in GitHub provider #4648
Add additional test coverage for common functions in GitHub provider #4648
Conversation
Currently common functions in GitHub provider lacks test coverage when converting github repos to minder repos. This commit adds test coverage for ConvertRepositories for github Signed-off-by: Kugamoorthy Gajananan <[email protected]>
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.
Thanks for the PR @gajananan!
The code changes look good, there are just a few cleanup items we need before merging this.
Could you run make lint
on you local machine before committing? This will show the lint errors.
Could you change the PR description from Fixes #4380
to Ref #4380
? If we have the Fixes
keyword then it will close the associated issue, which we don't want in this case.
Currently helper functions in Util lacks test coverage. This commit - fixes the lint errors and handles errors. - Adds test coverage for LoadCredentials function Signed-off-by: Kugamoorthy Gajananan <[email protected]>
Thank you. @eleftherias. I managed fix the lint config on my machine and run the |
It could be a mismatched version of the lint tool. Could you try running |
Currently common functions in GitHub provider lacks test coverage when converting github repos to minder repos. This commit fixes the lint errors after fixing lint version. Signed-off-by: Kugamoorthy Gajananan <[email protected]>
Thank you, @eleftherias. I was not aware I was using an old version of lint. It is now fixed. |
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.
Thanks for your contribution @gajananan!
Summary
Currently common functions in GitHub provider lacks test coverage when converting github repos to minder repos.
This commit adds test coverage for ConvertRepositories for github.
Ref #4380
Change Type
Mark the type of change your PR introduces:
Testing
Outline how the changes were tested, including steps to reproduce and any relevant configurations.
Attach screenshots if helpful.
Review Checklist: