Commit b35a2c1b authored by James Ramsay's avatar James Ramsay

Improve OrderBy and Sort support for note list

Merge Request Note Lists and Snippet Note Lists support OrderBy and
Sort options, like Issue Note Lists.
parent d3666a4c
...@@ -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