Skip to content

Commit

Permalink
Add missing fields to Repository Vulnerability Alert (#1898)
Browse files Browse the repository at this point in the history
  • Loading branch information
OhZedTee authored and gmlewis committed Jul 8, 2021
1 parent 93fcacd commit 9036cc0
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 10 deletions.
21 changes: 12 additions & 9 deletions github/event_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -943,15 +943,18 @@ type RepositoryVulnerabilityAlertEvent struct {

// RepositoryVulnerabilityAlert represents a repository security alert.
type RepositoryVulnerabilityAlert struct {
ID *int64 `json:"id,omitempty"`
AffectedRange *string `json:"affected_range,omitempty"`
AffectedPackageName *string `json:"affected_package_name,omitempty"`
ExternalReference *string `json:"external_reference,omitempty"`
ExternalIdentifier *string `json:"external_identifier,omitempty"`
FixedIn *string `json:"fixed_in,omitempty"`
Dismisser *User `json:"dismisser,omitempty"`
DismissReason *string `json:"dismiss_reason,omitempty"`
DismissedAt *Timestamp `json:"dismissed_at,omitempty"`
ID *int64 `json:"id,omitempty"`
AffectedRange *string `json:"affected_range,omitempty"`
AffectedPackageName *string `json:"affected_package_name,omitempty"`
ExternalReference *string `json:"external_reference,omitempty"`
ExternalIdentifier *string `json:"external_identifier,omitempty"`
GitHubSecurityAdvisoryID *string `json:"ghsa_id,omitempty"`
Severity *string `json:"severity,omitempty"`
CreatedAt *Timestamp `json:"created_at,omitempty"`
FixedIn *string `json:"fixed_in,omitempty"`
Dismisser *User `json:"dismisser,omitempty"`
DismissReason *string `json:"dismiss_reason,omitempty"`
DismissedAt *Timestamp `json:"dismissed_at,omitempty"`
}

// StarEvent is triggered when a star is added or removed from a repository.
Expand Down
16 changes: 16 additions & 0 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion github/github-stringify_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions github/repos.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ type Repository struct {
ForksCount *int `json:"forks_count,omitempty"`
NetworkCount *int `json:"network_count,omitempty"`
OpenIssuesCount *int `json:"open_issues_count,omitempty"`
OpenIssues *int `json:"open_issues,omitempty"`
StargazersCount *int `json:"stargazers_count,omitempty"`
SubscribersCount *int `json:"subscribers_count,omitempty"`
WatchersCount *int `json:"watchers_count,omitempty"`
Watchers *int `json:"watchers,omitempty"`
Size *int `json:"size,omitempty"`
AutoInit *bool `json:"auto_init,omitempty"`
Parent *Repository `json:"parent,omitempty"`
Expand Down

0 comments on commit 9036cc0

Please sign in to comment.