Skip to content

Commit

Permalink
Merge pull request #694 from jasper-eljakim/add-pagination-to-mr-disc…
Browse files Browse the repository at this point in the history
…ussions

Add pagination options to discussions call
  • Loading branch information
NARKOZ authored Jul 29, 2024
2 parents 227a47c + abd3f28 commit d6cf272
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/gitlab/client/merge_requests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,11 @@ def unsubscribe_from_merge_request(project, id)
# Gitlab.merge_request_discussions('gitlab', 1)
# @param [Integer, String] project The ID or name of a project.
# @param [Integer] id The ID of a merge request.
# @option options [Integer] :page The page number.
# @option options [Integer] :per_page The number of results per page.
# @return [Gitlab::ObjectifiedHash] List of the merge request discussions.
def merge_request_discussions(project, merge_request_id)
get("/projects/#{url_encode project}/merge_requests/#{merge_request_id}/discussions")
def merge_request_discussions(project, merge_request_id, options = {})
get("/projects/#{url_encode project}/merge_requests/#{merge_request_id}/discussions", query: options)
end

# Get single merge request discussion
Expand Down

0 comments on commit d6cf272

Please sign in to comment.