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
5bdeb939
Unverified
Commit
5bdeb939
authored
Dec 22, 2018
by
Sander van Harmelen
Committed by
GitHub
Dec 22, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #536 from jamesramsay/jr/merge-note-list-sorting
Improve OrderBy and Sort support for note lists
parents
d3666a4c
b35a2c1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
notes.go
notes.go
+10
-2
No files found.
notes.go
View file @
5bdeb939
...
@@ -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.
//
//
...
...
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