feat: unlink issue api

This commit is contained in:
Muhsin Keloth
2024-05-09 21:44:42 +05:30
parent 3e4f43d7da
commit df29b43540
8 changed files with 113 additions and 4 deletions
+11 -1
View File
@@ -36,7 +36,17 @@ class Integrations::Linear::ProcessorService
{
id: issue_id,
link: link
link: link,
link_id: response.with_indifferent_access[:attachmentLinkURL][:attachment][:id]
}
end
def unlink_issue(link_id)
response = linear_client.unlink_issue(link_id)
return response if response[:error]
{
link_id: link_id
}
end