From 203acc770778b510490ebd67e806d77895fab811 Mon Sep 17 00:00:00 2001
From: Piotr Zurek
Date: Sun, 10 Aug 2014 15:35:31 +1200
Subject: [PATCH] added url fields to IssueComment and PullRequest
---
github/issues_comments.go | 3 +++
github/pulls.go | 2 ++
2 files changed, 5 insertions(+)
diff --git a/github/issues_comments.go b/github/issues_comments.go
index 8c4d3d9..b3a2c5a 100644
--- a/github/issues_comments.go
+++ b/github/issues_comments.go
@@ -17,6 +17,9 @@ type IssueComment struct {
User *User `json:"user,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
+ URL *string `json:"url,omitempty"`
+ HTMLURL *string `json:"html_url,omitempty"`
+ IssueURL *string `json:"issue_url,omitempty"`
}
func (i IssueComment) String() string {
diff --git a/github/pulls.go b/github/pulls.go
index 199b0a8..a927bd9 100644
--- a/github/pulls.go
+++ b/github/pulls.go
@@ -37,7 +37,9 @@ type PullRequest struct {
Additions *int `json:"additions,omitempty"`
Deletions *int `json:"deletions,omitempty"`
ChangedFiles *int `json:"changed_files,omitempty"`
+ URL *string `json:"url,omitempty"`
HTMLURL *string `json:"html_url,omitempty"`
+ IssueURL *string `json:"issue_url,omitempty"`
StatusesURL *string `json:"statuses_url,omitempty"`
// TODO(willnorris): add head and base once we have a Commit struct defined somewhere