Skip to content

Commit

Permalink
fix: Installation Struct Missing for CommitCommentPayload, IssueComme…
Browse files Browse the repository at this point in the history
…ntPayload and IssuesPayload (#178)

This pull request fixes issue
#177

---------

Co-authored-by: Joshua Fish <[email protected]>
  • Loading branch information
Fish-Nullify and Joshua Fish authored Aug 6, 2023
1 parent ef5260a commit 61716b8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions github/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,9 @@ type CommitCommentPayload struct {
Type string `json:"type"`
SiteAdmin bool `json:"site_admin"`
} `json:"sender"`
Installation *struct {
ID int64 `json:"id"`
} `json:"installation"`
}

// CreatePayload contains the information for GitHub's create hook event
Expand Down Expand Up @@ -2117,6 +2120,9 @@ type IssueCommentPayload struct {
Type string `json:"type"`
SiteAdmin bool `json:"site_admin"`
} `json:"sender"`
Installation *struct {
ID int64 `json:"id"`
} `json:"installation"`
}

// IssuesPayload contains the information for GitHub's issues hook event
Expand Down Expand Up @@ -2289,6 +2295,9 @@ type IssuesPayload struct {
Type string `json:"type"`
SiteAdmin bool `json:"site_admin"`
} `json:"sender"`
Installation *struct {
ID int64 `json:"id"`
} `json:"installation"`
Assignee *Assignee `json:"assignee"`
Label *Label `json:"label"`
}
Expand Down

0 comments on commit 61716b8

Please sign in to comment.