dmitri.shuralyov.com/service/change

Add ChangedFiles field to Change.
dmitshur committed 6 years ago commit c96517b0fff082bd01bd62d8b020b7f7827cd63d
Showing partial commit. Full Commit
Collapse all
change.go
@@ -39,11 +39,12 @@ type Change struct {
	Labels    []issues.Label
	Author    users.User
	CreatedAt time.Time
	Replies   int // Number of replies to this change (not counting the mandatory change description comment).

	Commits int // Number of commits (not populated during list operation).
	Commits      int // Number of commits (not populated during list operation).
	ChangedFiles int // Number of changed files (not populated during list operation).
}

type Commit struct {
	SHA        string
	Message    string // TODO: Consider splitting into Subject, Body.