Skip to content

Commit

Permalink
Merge pull request #1957 from yecaowulei/main
Browse files Browse the repository at this point in the history
Add ExtendedTrailers to snippets struct
  • Loading branch information
svanharmelen authored Jun 18, 2024
2 parents c829cf5 + 6bc030a commit a62c545
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions commits.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,25 @@ type CommitsService struct {
//
// GitLab API docs: https://docs.gitlab.com/ee/api/commits.html
type Commit struct {
ID string `json:"id"`
ShortID string `json:"short_id"`
Title string `json:"title"`
AuthorName string `json:"author_name"`
AuthorEmail string `json:"author_email"`
AuthoredDate *time.Time `json:"authored_date"`
CommitterName string `json:"committer_name"`
CommitterEmail string `json:"committer_email"`
CommittedDate *time.Time `json:"committed_date"`
CreatedAt *time.Time `json:"created_at"`
Message string `json:"message"`
ParentIDs []string `json:"parent_ids"`
Stats *CommitStats `json:"stats"`
Status *BuildStateValue `json:"status"`
LastPipeline *PipelineInfo `json:"last_pipeline"`
ProjectID int `json:"project_id"`
Trailers map[string]string `json:"trailers"`
WebURL string `json:"web_url"`
ID string `json:"id"`
ShortID string `json:"short_id"`
Title string `json:"title"`
AuthorName string `json:"author_name"`
AuthorEmail string `json:"author_email"`
AuthoredDate *time.Time `json:"authored_date"`
CommitterName string `json:"committer_name"`
CommitterEmail string `json:"committer_email"`
CommittedDate *time.Time `json:"committed_date"`
CreatedAt *time.Time `json:"created_at"`
Message string `json:"message"`
ParentIDs []string `json:"parent_ids"`
Stats *CommitStats `json:"stats"`
Status *BuildStateValue `json:"status"`
LastPipeline *PipelineInfo `json:"last_pipeline"`
ProjectID int `json:"project_id"`
Trailers map[string]string `json:"trailers"`
ExtendedTrailers map[string]string `json:"extended_trailers"`
WebURL string `json:"web_url"`
}

// CommitStats represents the number of added and deleted files in a commit.
Expand Down

0 comments on commit a62c545

Please sign in to comment.