Skip to content

Add GetAutomatedSecurityFixes to report status - #2842

Merged
gmlewis merged 2 commits into
google:masterfrom
grahamhar:issue-2080
Aug 15, 2023
Merged

Add GetAutomatedSecurityFixes to report status#2842
gmlewis merged 2 commits into
google:masterfrom
grahamhar:issue-2080

Conversation

@grahamhar

Copy link
Copy Markdown
Contributor

This is an attempt to fix#2080. It is also required by upstream projects such as terraform-provider-github, see issue 1301

go test github.com/google/go-github/...
ok github.com/google/go-github/v53/github 1.165s
? github.com/google/go-github/v53/test/fields [no test files]
? github.com/google/go-github/v53/test/integration [no test files]

Comment threadgithub/repos.go
@codecov

codecovBot commented Jul 25, 2023

Copy link
Copy Markdown

Codecov Report

Merging #2842 (bef6076) into master (4074b7c) will increase coverage by 0.00%.
Report is 14 commits behind head on master.
The diff coverage is 100.00%.

@@ Coverage Diff @@## master #2842 +/- ##
=======================================
Coverage 98.06% 98.07% =======================================
Files 138 139 +1 Lines 12314 12357 +43 =======================================
+ Hits 12076 12119 +43 
Misses 162 162 Partials 76 76 
Files ChangedCoverage Δ
github/github.go97.97% <ø> (+<0.01%)⬆️
github/repos.go98.86% <100.00%> (+0.01%)⬆️

... and 8 files with indirect coverage changes

Comment threadgithub/repos_test.go

@gmlewisgmlewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you, @grahamhar !
LGTM.

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

@gmlewisgmlewis added the NeedsReview PR is awaiting a review before merging. label Jul 26, 2023
Comment threadgithub/repos.go Outdated
return nil, nil, err
}

// TODO: remove custom Accept header when this API fully launches

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks like API docs now recommend using the common application/vnd.github+json header. Maybe we can remove this custom header?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Happy to do that as part of this PR.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

I've made the changes I think are needed please let me know if I need to do anything else.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you @grahamhar !

@vandanrohatgivandanrohatgi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@gmlewisgmlewis removed the NeedsReview PR is awaiting a review before merging. label Aug 15, 2023
@gmlewis

Copy link
Copy Markdown
Collaborator

Thank you, @vandanrohatgi !
Merging.

@gmlewis
gmlewis merged commit 352e4c8 into google:masterAug 15, 2023
@grahamhar
grahamhar deleted the issue-2080 branch August 19, 2023 17:45
gmlewis pushed a commit to gmlewis/go-github that referenced this pull request Sep 19, 2023
jlaportebot added a commit to jlaportebot/go-github that referenced this pull request Jun 28, 2026
Sign up for freeto 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.

Feature: Check if automated security fixes are enabled for a repository

3 participants

@grahamhar@gmlewis@vandanrohatgi