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

Add firstPatchedVersion in github API #748

Merged
merged 4 commits into from
May 24, 2022

Conversation

TG1999
Copy link
Contributor

@TG1999 TG1999 commented May 21, 2022

The GitHub importer failed to parse Composer packages who did not have a slash in their names. We now no longer raise an exception if a Composer package does not have "vendor/name" but only a plain name.

Also we were not getting the first patched version from the GitHub API using GraphQL. This PR is also fixing this.

Reference: #645
Signed-off-by: Tushar Goel [email protected]

@TG1999 TG1999 force-pushed the first_patched_version_github branch from 10d6977 to d07eabe Compare May 21, 2022 12:49
@TG1999 TG1999 force-pushed the first_patched_version_github branch from d07eabe to 6e974c8 Compare May 21, 2022 13:02
Copy link
Member

@pombredanne pombredanne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM... Please double check the get item() , may be to ensure you have corner cases testsed.

@TG1999 TG1999 force-pushed the first_patched_version_github branch from 00c053d to 0f3404b Compare May 24, 2022 12:18
@TG1999
Copy link
Contributor Author

TG1999 commented May 24, 2022

Thanks! added tests for the corner cases, merging now!

@TG1999 TG1999 merged commit d1686db into aboutcode-org:main May 24, 2022
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.

2 participants