From 5ad9fb32b1abacb34ad8878694f291ae2abcd176 Mon Sep 17 00:00:00 2001 From: Will Norris Date: Fri, 17 Oct 2014 18:48:10 -0700 Subject: [PATCH] fix typo: s/comitempty/omitempty/ fixes #143 --- github/activity_events.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github/activity_events.go b/github/activity_events.go index 8b89912..b8a5e66 100644 --- a/github/activity_events.go +++ b/github/activity_events.go @@ -84,7 +84,7 @@ type PullRequestEvent struct { // IssueActivityEvent represents the payload delivered by Issue webhook type IssueActivityEvent struct { Action *string `json:"action,omitempty"` - Issue *Issue `json:"issue,comitempty"` + Issue *Issue `json:"issue,omitempty"` Repo *Repository `json:"repository,omitempty"` Sender *User `json:"sender,omitempty"` } @@ -94,7 +94,7 @@ type IssueActivityEvent struct { // This webhook also gets fired for comments on pull requests type IssueCommentEvent struct { Action *string `json:"action,omitempty"` - Issue *Issue `json:"issue,comitempty"` + Issue *Issue `json:"issue,omitempty"` Comment *IssueComment `json:"comment,omitempty"` Repo *Repository `json:"repository,omitempty"` Sender *User `json:"sender,omitempty"`