feat: add linked issue api

This commit is contained in:
Muhsin Keloth
2024-05-09 22:40:42 +05:30
parent 5e1dbfb64d
commit 4645e57e9a
8 changed files with 134 additions and 0 deletions
+6
View File
@@ -35,6 +35,12 @@ class Linear
execute_query(LinearQueries.search_issue(term))
end
def linked_issue(url)
raise ArgumentError, 'Missing link' if url.blank?
execute_query(LinearQueries.linked_issue(url))
end
def create_issue(params)
validate_team_and_title(params)
validate_priority(params[:priority])