Skip to content

Commit

Permalink
Added :page and :per_page query options to notes method
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenOTT committed Mar 18, 2015
1 parent e453ab2 commit f92d745
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 @@ -8,9 +8,11 @@ module Notes
# Gitlab.notes(5)
#
# @param [Integer] project The ID of a project.
# @option options [Integer] :page The page number.
# @option options [Integer] :per_page The number of results per page.
# @return [Array<Gitlab::ObjectifiedHash>]
def notes(project)
get("/projects/#{project}/notes")
def notes(project, options={})
get("/projects/#{project}/notes", :query => options)
end

# Gets a list of notes for a issue.
Expand Down

0 comments on commit f92d745

Please sign in to comment.