summaryrefslogtreecommitdiff
path: root/scripts/api/commit_merge_requests.rb
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