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 Language struct and optimize result parsing for GHClient.ListProgrammingLanguages #1992

Merged
merged 40 commits into from Jun 10, 2022
Merged

✨ Add Language struct and optimize result parsing for GHClient.ListProgrammingLanguages #1992

merged 40 commits into from Jun 10, 2022

Conversation

aidenwang9867
Copy link
Contributor

What kind of change does this PR introduce?

  • A follow-up PR on PR#1979.

  • Modify type Language string to type LanguageName string in clients/languages.go.

  • Add a new struct type Language struct {LanguageName, LoC} in clients/languages.go.

  • Add support for interface ListProgrammingLanguages to parse the returned JSON to a list of Language.

  • Add more language name const: CMake and DockerFile

  • PR title follows the guidelines defined in our pull request documentation

Does this PR introduce a user-facing change?

No.

NONE

@aidenwang9867 aidenwang9867 temporarily deployed to integration-test June 9, 2022 18:54 Inactive
@aidenwang9867 aidenwang9867 changed the title ✨ Follow-up on PR#1979: add Language struct and optimize result parsing for ListProgrammingLanguages ✨ Add Language struct and optimize result parsing for GHClient.ListProgrammingLanguages Jun 9, 2022
@codecov
Copy link

codecov bot commented Jun 9, 2022

Codecov Report

Merging #1992 (51764d1) into main (64cd053) will increase coverage by 2.53%.
The diff coverage is 3.70%.

@@            Coverage Diff             @@
##             main    #1992      +/-   ##
==========================================
+ Coverage   50.40%   52.94%   +2.53%     
==========================================
  Files          88       88              
  Lines        7225     7236      +11     
==========================================
+ Hits         3642     3831     +189     
+ Misses       3337     3152     -185     
- Partials      246      253       +7     

@github-actions
Copy link

github-actions bot commented Jun 9, 2022

Integration tests success for
[f6d1c35]
(https://github.com/ossf/scorecard/actions/runs/2470530628)

clients/languages.go Outdated Show resolved Hide resolved
Copy link
Contributor

@laurentsimon laurentsimon left a comment

Choose a reason for hiding this comment

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

Besides @azeemshaikh38 's comment, no further comment from me!

@aidenwang9867 aidenwang9867 temporarily deployed to integration-test June 9, 2022 20:23 Inactive
@github-actions
Copy link

github-actions bot commented Jun 9, 2022

Integration tests success for
[51764d1]
(https://github.com/ossf/scorecard/actions/runs/2470967723)

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

3 participants