2023-03-04 22:38:38 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-05-27 22:25:52 +05:30
|
|
|
require_relative 'base'
|
2023-03-04 22:38:38 +05:30
|
|
|
|
2023-05-27 22:25:52 +05:30
|
|
|
class CommitMergeRequests < Base
|
2023-03-04 22:38:38 +05:30
|
|
|
def initialize(options)
|
2023-05-27 22:25:52 +05:30
|
|
|
super
|
2023-03-04 22:38:38 +05:30
|
|
|
@sha = options.fetch(:sha)
|
|
|
|
end
|
|
|
|
|
|
|
|
def execute
|
|
|
|
client.commit_merge_requests(project, sha)
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
2023-05-27 22:25:52 +05:30
|
|
|
attr_reader :sha
|
2023-03-04 22:38:38 +05:30
|
|
|
end
|