Commit 442ae38d authored by Sander van Harmelen's avatar Sander van Harmelen Committed by GitHub

Update Commit struct

Add missing fields
parent 7474322c
...@@ -34,16 +34,18 @@ type CommitsService struct { ...@@ -34,16 +34,18 @@ type CommitsService struct {
// //
// GitLab API docs: https://docs.gitlab.com/ce/api/commits.html // GitLab API docs: https://docs.gitlab.com/ce/api/commits.html
type Commit struct { type Commit struct {
ID string `json:"id"` ID string `json:"id"`
ShortID string `json:"short_id"` ShortID string `json:"short_id"`
Title string `json:"title"` Title string `json:"title"`
AuthorName string `json:"author_name"` AuthorName string `json:"author_name"`
AuthorEmail string `json:"author_email"` AuthorEmail string `json:"author_email"`
AuthoredDate *time.Time `json:"authored_date"` AuthoredDate *time.Time `json:"authored_date"`
CommittedDate *time.Time `json:"committed_date"` CommitterName string `json:"committer_name"`
CreatedAt *time.Time `json:"created_at"` CommitterEmail string `json:"committer_email"`
Message string `json:"message"` CommittedDate *time.Time `json:"committed_date"`
ParentIDs []string `json:"parent_ids"` CreatedAt *time.Time `json:"created_at"`
Message string `json:"message"`
ParentIDs []string `json:"parent_ids"`
} }
func (c Commit) String() string { func (c Commit) String() string {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment