Welcome to mirror list, hosted at ThFree Co, Russian Federation.

commit_merge_requests.rb « api « scripts - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 523d2e769f09871b22f44ad98371946bbb491e3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

require_relative 'base'

class CommitMergeRequests < Base
  def initialize(options)
    super
    @sha = options.fetch(:sha)
  end

  def execute
    client.commit_merge_requests(project, sha)
  end

  private

  attr_reader :sha
end