Commit 10146017 authored by Sander van Harmelen's avatar Sander van Harmelen Committed by GitHub

Add pagination options to ListBuildsOptions (#86)

parent 9a296c6b
...@@ -26,7 +26,8 @@ import ( ...@@ -26,7 +26,8 @@ import (
// ListBuildsOptions are options for two list apis // ListBuildsOptions are options for two list apis
type ListBuildsOptions struct { type ListBuildsOptions struct {
Scope []BuildState `url:"scope,omitempty", json:"scope,omitempty"` ListOptions
Scope []BuildState `url:"scope,omitempty" json:"scope,omitempty"`
} }
// BuildsService handles communication with the ci builds related methods // BuildsService handles communication with the ci builds related methods
...@@ -41,7 +42,7 @@ type BuildsService struct { ...@@ -41,7 +42,7 @@ type BuildsService struct {
// //
// GitLab API docs: http://docs.gitlab.com/ce/api/builds.html // GitLab API docs: http://docs.gitlab.com/ce/api/builds.html
type Build struct { type Build struct {
Commit *Commit `json:"commit"` Commit *Commit `json:"commit"`
CreatedAt *time.Time `json:"created_at"` CreatedAt *time.Time `json:"created_at"`
ArtifactsFile struct { ArtifactsFile struct {
Filename string `json:"filename"` Filename string `json:"filename"`
......
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