Sha256: 96be31ea49b8e71041d5092c68b6e1be89642c82b01706891225fa143f81f0aa

Contents?: true

Size: 527 Bytes

Versions: 12

Compression:

Stored size: 527 Bytes

Contents

# frozen_string_literal: true

# Gitlab gem monkeypatch for related merge requests
# TODO: Add method upstream
#
class Gitlab::Client
  module Issues
    # List related merge requests
    #
    # @example
    #   Gitlab.related_issue_merge_requests(3, 42)
    #
    # @param  [Integer, String] project The ID or name of a project.
    # @param  [Integer] id The ID of an issue.
    def related_issue_merge_requests(project, id)
      get("/projects/#{url_encode project}/issues/#{id}/related_merge_requests")
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dri-0.11.0 lib/dri/gitlab/issues.rb
dri-0.10.2 lib/dri/gitlab/issues.rb
dri-0.10.1 lib/dri/gitlab/issues.rb
dri-0.10.0 lib/dri/gitlab/issues.rb
dri-0.9.0 lib/dri/gitlab/issues.rb
dri-0.8.0 lib/dri/gitlab/issues.rb
dri-0.7.0 lib/dri/gitlab/issues.rb
dri-0.6.1 lib/dri/gitlab/issues.rb
dri-0.6.0 lib/dri/gitlab/issues.rb
dri-0.5.1 lib/dri/gitlab/issues.rb
dri-0.5.0 lib/dri/gitlab/issues.rb
dri-0.4.0 lib/dri/gitlab/issues.rb