From 36ceba87eb9a25a8c5572eeff8dca43fe336b3b8 Mon Sep 17 00:00:00 2001
From: Piotr Zurek
Date: Fri, 23 May 2014 15:30:05 +1200
Subject: [PATCH] add PushEvent file stats and repository
---
github/activity_events.go | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/github/activity_events.go b/github/activity_events.go
index 6230a59..422649b 100644
--- a/github/activity_events.go
+++ b/github/activity_events.go
@@ -49,6 +49,7 @@ type PushEvent struct {
Ref *string `json:"ref,omitempty"`
Size *int `json:"ref,omitempty"`
Commits []PushEventCommit `json:"commits,omitempty"`
+ Repo *Repository `json:"repository,omitempty"`
}
func (p PushEvent) String() string {
@@ -61,7 +62,10 @@ type PushEventCommit struct {
Message *string `json:"message,omitempty"`
Author *CommitAuthor `json:"author,omitempty"`
URL *string `json:"url,omitempty"`
- Distinct *bool `json:"distinct"`
+ Distinct *bool `json:"distinct,omitempty"`
+ Added []string `json:"added,omitempty"`
+ Removed []string `json:"removed,omitempty"`
+ Modified []string `json:"modified,omitempty"`
}
func (p PushEventCommit) String() string {