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 CreateIssueDiscussion < Base
|
2023-03-04 22:38:38 +05:30
|
|
|
def execute(discussion_data)
|
|
|
|
client.post(
|
|
|
|
"/projects/#{client.url_encode project}/issues/#{discussion_data.delete(:issue_iid)}/discussions",
|
|
|
|
body: discussion_data
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|