debian-mirror-gitlab/scripts/api/create_issue_discussion.rb
2023-05-27 22:25:52 +05:30

12 lines
288 B
Ruby

# frozen_string_literal: true
require_relative 'base'
class CreateIssueDiscussion < Base
def execute(discussion_data)
client.post(
"/projects/#{client.url_encode project}/issues/#{discussion_data.delete(:issue_iid)}/discussions",
body: discussion_data
)
end
end