We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95c9e06 commit 6eaaf61Copy full SHA for 6eaaf61
workflow/decoder.py
@@ -44,3 +44,13 @@ def get_step_names(definition: dict[str, Any]) -> list[str]:
44
"""
45
names: list[str] = [step["name"] for step in definition.get("steps", [])]
46
return names
47
+
48
49
+def get_workflow_name(definition: dict[str, Any]) -> str:
50
+ """Given a Workflow definition this function returns its name."""
51
+ return str(definition.get("name", ""))
52
53
54
+def get_workflow_description(definition: dict[str, Any]) -> str | None:
55
+ """Given a Workflow definition this function returns its description (if it has one)."""
56
+ return definition.get("description")
0 commit comments