chore: Linear integration fixes (#9538)

This commit is contained in:
Muhsin Keloth
2024-05-29 11:28:13 +05:30
committed by GitHub
parent 59b912f22c
commit a55fffab3a
14 changed files with 188 additions and 25 deletions

View File

@@ -3,7 +3,7 @@ module Linear::Mutations
case value
when String
# Strings must be enclosed in double quotes
"\"#{value}\""
"\"#{value.gsub("\n", '\\n')}\""
when Array
# Arrays need to be recursively converted
"[#{value.map { |v| graphql_value(v) }.join(', ')}]"