From 92013b617683a6f569c53916877dcbae1e0f8131 Mon Sep 17 00:00:00 2001 From: HAHWUL Date: Tue, 25 Jun 2024 23:06:01 +0900 Subject: [PATCH] Add workflow --- lib/caido/helpers/workflow.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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