17 lines
339 B
Ruby
17 lines
339 B
Ruby
module LinearMutations
|
|
def self.issue_create(input)
|
|
graphql_input = input.map { |key, value| "#{key}: \"#{value}\"" }.join(', ')
|
|
<<~GRAPHQL
|
|
mutation {
|
|
issueCreate(input: { #{graphql_input} }) {
|
|
success
|
|
issue {
|
|
id
|
|
title
|
|
}
|
|
}
|
|
}
|
|
GRAPHQL
|
|
end
|
|
end
|