From 49ae5d768d9d95d4230cb01d1378067296c5d9f6 Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Mon, 3 Aug 2015 11:57:23 -0700 Subject: [PATCH] Add 'Label' field to IssueEvent --- github/issues_events.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/github/issues_events.go b/github/issues_events.go index 0c720aa..79eb8d3 100644 --- a/github/issues_events.go +++ b/github/issues_events.go @@ -49,6 +49,9 @@ type IssueEvent struct { // // head_ref_restored // The pull request’s branch was restored. + // + // labeled + // A label was added. Event *string `json:"event,omitempty"` // The SHA of the commit that referenced this commit, if applicable. @@ -56,6 +59,9 @@ type IssueEvent struct { CreatedAt *time.Time `json:"created_at,omitempty"` Issue *Issue `json:"issue,omitempty"` + + // Only present on 'labeled' events + Label *Label `json:"label,omitempty"` } // ListIssueEvents lists events for the specified issue.