Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
go-gitlab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
go-gitlab
Commits
442ae38d
Commit
442ae38d
authored
Mar 03, 2017
by
Sander van Harmelen
Committed by
GitHub
Mar 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Commit struct
Add missing fields
parent
7474322c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
commits.go
commits.go
+12
-10
No files found.
commits.go
View file @
442ae38d
...
...
@@ -34,16 +34,18 @@ type CommitsService struct {
//
// GitLab API docs: https://docs.gitlab.com/ce/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"`
CommittedDate
*
time
.
Time
`json:"committed_date"`
CreatedAt
*
time
.
Time
`json:"created_at"`
Message
string
`json:"message"`
ParentIDs
[]
string
`json:"parent_ids"`
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"`
}
func
(
c
Commit
)
String
()
string
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment