feat: add specs for create and link issue

This commit is contained in:
Muhsin Keloth
2024-05-09 15:12:20 +05:30
parent fc41669178
commit 429cfd0166
2 changed files with 133 additions and 0 deletions
+2
View File
@@ -85,6 +85,8 @@ class Linear
response = @client.query(query)
log_and_return_error("Error creating issue: #{response.errors.messages}") if response.data.nil? && response.errors.any?
response.data.to_h
rescue StandardError => e
log_and_return_error("Error: #{e.message}")
end
def log_and_return_error(message)