-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 support for dependabot_alert webhook event #2888
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2888 +/- ##
=======================================
Coverage 98.06% 98.06%
=======================================
Files 140 140
Lines 12269 12269
=======================================
Hits 12031 12031
Misses 162 162
Partials 76 76
|
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, @nikpivkin !
github/event_types.go
Outdated
// GitHub API docs: https://docs.github.com/en/webhooks-and-events/webhooks/webhook-events-and-payloads#dependabot_alert | ||
type DependabotAlertEvent struct { | ||
Action *string `json:"action,omitempty"` | ||
Alert DependabotAlert `json:"alert"` |
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.
Alert DependabotAlert `json:"alert"` | |
Alert *DependabotAlert `json:"alert,omitempty"` |
github/event_types.go
Outdated
// The following field is only present when the webhook is triggered on | ||
Installation *Installation `json:"installation,omitempty"` | ||
Organization *Organization `json:"organization,omitempty"` | ||
Enterprise *Enterprise `json:"enterprise,omitempty"` | ||
Repo *Repository `json:"repository,omitempty"` | ||
Sender *User `json:"sender,omitempty"` |
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.
// The following field is only present when the webhook is triggered on | |
Installation *Installation `json:"installation,omitempty"` | |
Organization *Organization `json:"organization,omitempty"` | |
Enterprise *Enterprise `json:"enterprise,omitempty"` | |
Repo *Repository `json:"repository,omitempty"` | |
Sender *User `json:"sender,omitempty"` | |
// The following fields are only populated by Webhook events. | |
Installation *Installation `json:"installation,omitempty"` | |
Enterprise *Enterprise `json:"enterprise,omitempty"` | |
Repo *Repository `json:"repository,omitempty"` | |
Sender *User `json:"sender,omitempty"` | |
// The following field is only present when the webhook is triggered on | |
// a repository belonging to an organization. | |
Organization *Organization `json:"organization,omitempty"` |
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, @nikpivkin !
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.
Thank you, @WillAbides ! |
Closes #2790
Added support for dependabot_alert webhook event.