Unverified Commit 5bdeb939 authored by Sander van Harmelen's avatar Sander van Harmelen Committed by GitHub

Merge pull request #536 from jamesramsay/jr/merge-note-list-sorting

Improve OrderBy and Sort support for note lists
parents d3666a4c b35a2c1b
...@@ -238,7 +238,11 @@ func (s *NotesService) DeleteIssueNote(pid interface{}, issue, note int, options ...@@ -238,7 +238,11 @@ func (s *NotesService) DeleteIssueNote(pid interface{}, issue, note int, options
// //
// GitLab API docs: // GitLab API docs:
// https://docs.gitlab.com/ce/api/notes.html#list-all-snippet-notes // https://docs.gitlab.com/ce/api/notes.html#list-all-snippet-notes
type ListSnippetNotesOptions ListOptions type ListSnippetNotesOptions struct {
ListOptions
OrderBy *string `url:"order_by,omitempty" json:"order_by,omitempty"`
Sort *string `url:"sort,omitempty" json:"sort,omitempty"`
}
// ListSnippetNotes gets a list of all notes for a single snippet. Snippet // ListSnippetNotes gets a list of all notes for a single snippet. Snippet
// notes are comments users can post to a snippet. // notes are comments users can post to a snippet.
...@@ -382,7 +386,11 @@ func (s *NotesService) DeleteSnippetNote(pid interface{}, snippet, note int, opt ...@@ -382,7 +386,11 @@ func (s *NotesService) DeleteSnippetNote(pid interface{}, snippet, note int, opt
// //
// GitLab API docs: // GitLab API docs:
// https://docs.gitlab.com/ce/api/notes.html#list-all-merge-request-notes // https://docs.gitlab.com/ce/api/notes.html#list-all-merge-request-notes
type ListMergeRequestNotesOptions ListOptions type ListMergeRequestNotesOptions struct {
ListOptions
OrderBy *string `url:"order_by,omitempty" json:"order_by,omitempty"`
Sort *string `url:"sort,omitempty" json:"sort,omitempty"`
}
// ListMergeRequestNotes gets a list of all notes for a single merge request. // ListMergeRequestNotes gets a list of all notes for a single merge request.
// //
......
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