@ -9,21 +9,22 @@ import (
// PullRequest represents a pull request
// PullRequest represents a pull request
type PullRequest struct {
type PullRequest struct {
ID int64 ` json:"id" `
ID int64 ` json:"id" `
URL string ` json:"url" `
URL string ` json:"url" `
Index int64 ` json:"number" `
Index int64 ` json:"number" `
Poster * User ` json:"user" `
Poster * User ` json:"user" `
Title string ` json:"title" `
Title string ` json:"title" `
Body string ` json:"body" `
Body string ` json:"body" `
Labels [ ] * Label ` json:"labels" `
Labels [ ] * Label ` json:"labels" `
Milestone * Milestone ` json:"milestone" `
Milestone * Milestone ` json:"milestone" `
Assignee * User ` json:"assignee" `
Assignee * User ` json:"assignee" `
Assignees [ ] * User ` json:"assignees" `
Assignees [ ] * User ` json:"assignees" `
RequestedReviewers [ ] * User ` json:"requested_reviewers" `
RequestedReviewers [ ] * User ` json:"requested_reviewers" `
State StateType ` json:"state" `
RequestedReviewersTeams [ ] * Team ` json:"requested_reviewers_teams" `
Draft bool ` json:"draft" `
State StateType ` json:"state" `
IsLocked bool ` json:"is_locked" `
Draft bool ` json:"draft" `
Comments int ` json:"comments" `
IsLocked bool ` json:"is_locked" `
Comments int ` json:"comments" `
// number of review comments made on the diff of a PR review (not including comments on commits or issues in a PR)
// number of review comments made on the diff of a PR review (not including comments on commits or issues in a PR)
ReviewComments int ` json:"review_comments" `
ReviewComments int ` json:"review_comments" `
Additions int ` json:"additions" `
Additions int ` json:"additions" `