diff --git a/lib/caido/helpers/workflow.rb b/lib/caido/helpers/workflow.rb index 1bfc178..e6fca00 100644 --- a/lib/caido/helpers/workflow.rb +++ b/lib/caido/helpers/workflow.rb @@ -17,5 +17,20 @@ def workflows } }')['workflows'] end + + def workflow(id) + query("query{ + workflow(id: \"#{id}\"){ + id + name + kind + enabled + global + definition + createdAt + updatedAt + } + }")['workflow'] + end end end