Commit cc5224c7 authored by griffin-stewie's avatar griffin-stewie Committed by Sander van Harmelen

Add params on list repo commits (#87)

* add parameters “since” and “until”

* update API Docs URL
parent 10146017
......@@ -52,10 +52,12 @@ func (c Commit) String() string {
// ListCommitsOptions represents the available ListCommits() options.
//
// GitLab API docs: http://doc.gitlab.com/ce/api/commits.html#list-commits
// 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"`
}
// ListCommits gets a list of repository commits in a project.
......
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