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

Implement global security advisories API #2993

Merged
merged 6 commits into from Nov 29, 2023
Merged

Conversation

cpanato
Copy link
Contributor

@cpanato cpanato commented Nov 17, 2023

  • implement global security advisories API

Fixes: #2851

cc @gmlewis

@cpanato cpanato force-pushed the GH-2851 branch 3 times, most recently from aebb733 to 0a04270 Compare November 17, 2023 16:58
@gmlewis gmlewis changed the title implement global security advisories API Implement global security advisories API Nov 17, 2023
Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

Thanks, @cpanato. I'm going to stop my code review early here and ask you to remove as many new structs that you've added as possible, and to instead reuse SecurityAdvisory and other related structs as much as possible without all the duplication.

Also, every new exported struct that you add needs a full godoc string.

github/security_advisories.go Outdated Show resolved Hide resolved
github/security_advisories.go Outdated Show resolved Hide resolved
github/security_advisories.go Outdated Show resolved Hide resolved
Signed-off-by: cpanato <ctadeu@gmail.com>
Copy link

codecov bot commented Nov 18, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (78c6de0) 97.93% compared to head (b0cc2f2) 97.91%.

Files Patch % Lines
github/security_advisories.go 89.28% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2993      +/-   ##
==========================================
- Coverage   97.93%   97.91%   -0.02%     
==========================================
  Files         150      150              
  Lines       12952    12980      +28     
==========================================
+ Hits        12685    12710      +25     
- Misses        190      192       +2     
- Partials       77       78       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cpanato cpanato requested a review from gmlewis November 19, 2023 12:35
github/security_advisories.go Outdated Show resolved Hide resolved
github/security_advisories.go Outdated Show resolved Hide resolved
github/security_advisories.go Outdated Show resolved Hide resolved
github/security_advisories.go Outdated Show resolved Hide resolved
github/security_advisories.go Outdated Show resolved Hide resolved
github/security_advisories.go Outdated Show resolved Hide resolved
github/security_advisories.go Outdated Show resolved Hide resolved
github/security_advisories_test.go Outdated Show resolved Hide resolved
github/security_advisories_test.go Show resolved Hide resolved
github/security_advisories.go Outdated Show resolved Hide resolved
Signed-off-by: cpanato <ctadeu@gmail.com>
@cpanato
Copy link
Contributor Author

cpanato commented Nov 19, 2023

@gmlewis thanks so much for your review and sorry about the force-push

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

OK, two small nits, please, then we should be ready for a second LGTM+Approval from any other contributor to this repo before merging.

github/security_advisories.go Outdated Show resolved Hide resolved
github/security_advisories_test.go Show resolved Hide resolved
@gmlewis gmlewis added the NeedsReview PR is awaiting a review before merging. label Nov 19, 2023
Signed-off-by: cpanato <ctadeu@gmail.com>
@cpanato cpanato requested a review from gmlewis November 20, 2023 13:53
@cpanato
Copy link
Contributor Author

cpanato commented Nov 20, 2023

@gmlewis Thanks again for your review, PTAL

Signed-off-by: cpanato <ctadeu@gmail.com>
Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

Thank you, @cpanato !
LGTM after one tiny nit, after which we should be ready for a second LGTM+Approval from any other contributor to this repo before merging.

github/security_advisories.go Outdated Show resolved Hide resolved
Signed-off-by: cpanato <ctadeu@gmail.com>
@cpanato cpanato requested a review from gmlewis November 20, 2023 15:25
Signed-off-by: cpanato <ctadeu@gmail.com>
Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

Thank you, @cpanato !
LGTM.

Awaiting second LGTM+Approval from any other contributor to this repo before merging.

@cpanato
Copy link
Contributor Author

cpanato commented Nov 24, 2023

@gmlewis checking if you know how long this will take? :)
also, after we merge this when can we have a new release? thanks again

@gmlewis
Copy link
Collaborator

gmlewis commented Nov 24, 2023

@cpanato - we rely on volunteers to help maintain this repo. I don't know when another contributor will be available to review this PR before merging. And yes, we should be able to make a new release soon as well.

@cpanato
Copy link
Contributor Author

cpanato commented Nov 24, 2023

thank you @gmlewis, no worries just checking :)

Copy link
Contributor

@valbeat valbeat left a comment

Choose a reason for hiding this comment

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

LGTM!

@gmlewis gmlewis removed the NeedsReview PR is awaiting a review before merging. label Nov 29, 2023
@gmlewis
Copy link
Collaborator

gmlewis commented Nov 29, 2023

Thank you, @valbeat !
Merging.

@gmlewis gmlewis merged commit 9cf8c17 into google:master Nov 29, 2023
5 of 7 checks passed
@cpanato
Copy link
Contributor Author

cpanato commented Nov 29, 2023

thanks for all the support

@gmlewis
Copy link
Collaborator

gmlewis commented Dec 1, 2023

@gmlewis checking if you know how long this will take? :) also, after we merge this when can we have a new release? thanks again

Hi @cpanato - this is now released here: https://github.com/google/go-github/releases/tag/v57.0.0
Sorry for the delay.

@cpanato
Copy link
Contributor Author

cpanato commented Dec 2, 2023

@gmlewis checking if you know how long this will take? :) also, after we merge this when can we have a new release? thanks again

Hi @cpanato - this is now released here: https://github.com/google/go-github/releases/tag/v57.0.0

Sorry for the delay.

No sorry is needed. Thank you for all the work you do here 🎉 and thanks for the release

gmlewis pushed a commit to o-sama/go-github that referenced this pull request Dec 19, 2023
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.

Support new Get global security advisories API
3 participants