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
d8a6b151
Commit
d8a6b151
authored
May 08, 2018
by
Sander van Harmelen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure we use pointers in the options structs
parent
be622cea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
commits.go
commits.go
+5
-5
events.go
events.go
+9
-9
No files found.
commits.go
View file @
d8a6b151
...
...
@@ -68,11 +68,11 @@ func (c Commit) String() string {
// GitLab API docs: https://docs.gitlab.com/ce/api/commits.html#list-repository-commits
type
ListCommitsOptions
struct
{
ListOptions
RefName
*
string
`url:"ref_name,omitempty" json:"ref_name,omitempty"`
Since
time
.
Time
`url:"since,omitempty" json:"since,omitempty"`
Until
time
.
Time
`url:"until,omitempty" json:"until,omitempty"`
Path
*
string
`url:"path,omitempty" json:"path,omitempty"`
All
bool
`url:"all,omitempty" json:"all,omitempty"`
RefName
*
string
`url:"ref_name,omitempty" json:"ref_name,omitempty"`
Since
*
time
.
Time
`url:"since,omitempty" json:"since,omitempty"`
Until
*
time
.
Time
`url:"until,omitempty" json:"until,omitempty"`
Path
*
string
`url:"path,omitempty" json:"path,omitempty"`
All
*
bool
`url:"all,omitempty" json:"all,omitempty"`
}
// ListCommits gets a list of repository commits in a project.
...
...
events.go
View file @
d8a6b151
...
...
@@ -35,15 +35,15 @@ type EventsService struct {
// GitLab API docs:
// https://docs.gitlab.com/ce/api/events.html#get-user-contribution-events
type
ContributionEvent
struct
{
Title
string
`json:"title"`
ProjectID
int
`json:"project_id"`
ActionName
string
`json:"action_name"`
TargetID
int
`json:"target_id"`
TargetIID
int
`json:"target_iid"`
TargetType
string
`json:"target_type"`
AuthorID
int
`json:"author_id"`
TargetTitle
string
`json:"target_title"`
CreatedAt
time
.
Time
`json:"created_at"`
Title
string
`json:"title"`
ProjectID
int
`json:"project_id"`
ActionName
string
`json:"action_name"`
TargetID
int
`json:"target_id"`
TargetIID
int
`json:"target_iid"`
TargetType
string
`json:"target_type"`
AuthorID
int
`json:"author_id"`
TargetTitle
string
`json:"target_title"`
CreatedAt
*
time
.
Time
`json:"created_at"`
PushData
struct
{
CommitCount
int
`json:"commit_count"`
Action
string
`json:"action"`
...
...
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