Browse Source

added url fields to IssueComment and PullRequest

Piotr Zurek 12 years ago
committed by Will Norris
parent
commit
203acc7707
2 changed files with 5 additions and 0 deletions
  1. +3
    -0
      github/issues_comments.go
  2. +2
    -0
      github/pulls.go

+ 3
- 0
github/issues_comments.go View File

@ -17,6 +17,9 @@ type IssueComment struct {
User *User `json:"user,omitempty"` User *User `json:"user,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"`
UpdatedAt *time.Time `json:"updated_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 { func (i IssueComment) String() string {


+ 2
- 0
github/pulls.go View File

@ -37,7 +37,9 @@ type PullRequest struct {
Additions *int `json:"additions,omitempty"` Additions *int `json:"additions,omitempty"`
Deletions *int `json:"deletions,omitempty"` Deletions *int `json:"deletions,omitempty"`
ChangedFiles *int `json:"changed_files,omitempty"` ChangedFiles *int `json:"changed_files,omitempty"`
URL *string `json:"url,omitempty"`
HTMLURL *string `json:"html_url,omitempty"` HTMLURL *string `json:"html_url,omitempty"`
IssueURL *string `json:"issue_url,omitempty"`
StatusesURL *string `json:"statuses_url,omitempty"` StatusesURL *string `json:"statuses_url,omitempty"`
// TODO(willnorris): add head and base once we have a Commit struct defined somewhere // TODO(willnorris): add head and base once we have a Commit struct defined somewhere


Loading…
Cancel
Save