Browse Source

Add CommentCount to Commit.

This integer exposes the number of comments that have been posted for that commit on GitHub.

It is documented at https://developer.github.com/v3/repos/commits/.
Dmitri Shuralyov 11 years ago
committed by Will Norris
parent
commit
1e55bf6be8
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      github/git_commits.go

+ 5
- 0
github/git_commits.go View File

@ -20,6 +20,11 @@ type Commit struct {
Parents []Commit `json:"parents,omitempty"`
Stats *CommitStats `json:"stats,omitempty"`
URL *string `json:"url,omitempty"`
// CommentCount is the number of GitHub comments on the commit. This
// is only populated for requests that fetch GitHub data like
// Pulls.ListCommits, Repositories.ListCommits, etc.
CommentCount *int `json:"comment_count,omitempty"`
}
func (c Commit) String() string {


Loading…
Cancel
Save