-
Notifications
You must be signed in to change notification settings - Fork 2.2k
add automated-security-fixes endpoint #1188
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
Conversation
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #1188 +/- ##
==========================================
+ Coverage 70.24% 70.24% +<.01%
==========================================
Files 84 84
Lines 5878 5892 +14
==========================================
+ Hits 4129 4139 +10
- Misses 958 960 +2
- Partials 791 793 +2
Continue to review full report at Codecov.
|
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.
Thank you, @cpanato!
LGTM.
I'll see if I can resolve the conflicts from the GitHub Web UI, then we'll await a second LGTM before merging.
Hi @cpanato, it looks like I don't have permission to merge the changes to your PR. I think there is an "Allow maintainers to push to PR" or something like that if you want to try enabling it.
Otherwise, you are doing to have to resolve the conflicts yourself because the GitHub web editor doesn't appear to be working currently. Sorry about that. The only change that's needed is to move your new custom header after the other new one: diff --git a/github/github.go b/github/github.go
index bfe0453..d6b75ee 100644
--- a/github/github.go
+++ b/github/github.go
@@ -140,6 +140,9 @@ const (
// https://developer.github.com/changes/2019-05-29-update-branch-api/
mediaTypeUpdatePullRequestBranchPreview = "application/vnd.github.lydian-preview+json"
+
+ // https://developer.github.com/changes/2019-06-04-automated-security-fixes/
+ mediaTypeRequiredAutomatedSecurityFixesPreview = "application/vnd.github.london-preview+json"
)
// A Client manages communication with the GitHub API. |
@gmlewis the Allow maintainers to push to PR is checked. i will rebase :) |
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.
LGTM 💯
Thanks, for the PR @cpanato 💖
Thank you, @cpanato and @vaibhavsingh97! Merging. |
Adding automated-security-fixes endpoint
fixes: #1184