Skip to content

Commit

Permalink
Added :page and :per_page query options to snippet_notes method
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenOTT committed Mar 18, 2015
1 parent f9818cb commit 75ead81
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/gitlab/client/notes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ def issue_notes(project, issue, options={})
#
# @param [Integer] project The ID of a project.
# @param [Integer] snippet The ID of a snippet.
# @option options [Integer] :page The page number.
# @option options [Integer] :per_page The number of results per page.
# @return [Array<Gitlab::ObjectifiedHash>]
def snippet_notes(project, snippet)
get("/projects/#{project}/snippets/#{snippet}/notes")
def snippet_notes(project, snippet, options={})
get("/projects/#{project}/snippets/#{snippet}/notes", :query => options)
end

# Gets a single wall note.
Expand Down

0 comments on commit 75ead81

Please sign in to comment.