chore: add create comment api

This commit is contained in:
Muhsin Keloth
2024-05-20 15:34:38 +05:30
parent 6b86b6f87d
commit 95d2a57a81
8 changed files with 78 additions and 4 deletions
@@ -41,6 +41,17 @@ class Integrations::Linear::ProcessorService
}
end
def create_comment(issue_id, comment)
response = linear_client.create_comment(issue_id, comment)
return response if response[:error]
{
id: response['commentCreate']['comment']['id'],
body: response['commentCreate']['comment']['body']
}
end
def unlink_issue(link_id)
response = linear_client.unlink_issue(link_id)
return response if response[:error]