Skip to content

Commit

Permalink
Add sponsorship in messages.go and messages_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoDev2 committed Sep 9, 2024
1 parent 50ef5dc commit b2e4f61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions github/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ var (
"secret_scanning_alert": &SecretScanningAlertEvent{},
"security_advisory": &SecurityAdvisoryEvent{},
"security_and_analysis": &SecurityAndAnalysisEvent{},
"sponsorship": &SponsorshipEvent{},
"star": &StarEvent{},
"status": &StatusEvent{},
"team": &TeamEvent{},
Expand Down
4 changes: 4 additions & 0 deletions github/messages_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,10 @@ func TestParseWebHook(t *testing.T) {
payload: &StatusEvent{},
messageType: "status",
},
{
payload: &SponsorshipEvent{},
messageType: "sponsors",
},
{
payload: &TeamEvent{},
messageType: "team",
Expand Down

0 comments on commit b2e4f61

Please sign in to comment.