From 52dae9ca759c0505b4f4ce5b90bf66c41fd2a0aa Mon Sep 17 00:00:00 2001 From: Kelly Merrick Date: Thu, 30 May 2024 15:51:31 -0500 Subject: [PATCH] fix(contextual help): correct docs link, add missing examples --- src/elm/Pages/Org_/Repo_/Build_.elm | 10 ++++++ src/elm/Pages/Org_/Repo_/Build_/Graph.elm | 12 ++++++- src/elm/Pages/Org_/Repo_/Build_/Pipeline.elm | 12 ++++++- src/elm/Pages/Org_/Repo_/Build_/Services.elm | 37 +++++++++++++++++++- 4 files changed, 68 insertions(+), 3 deletions(-) diff --git a/src/elm/Pages/Org_/Repo_/Build_.elm b/src/elm/Pages/Org_/Repo_/Build_.elm index f2aefac35..bd9d63a41 100644 --- a/src/elm/Pages/Org_/Repo_/Build_.elm +++ b/src/elm/Pages/Org_/Repo_/Build_.elm @@ -73,6 +73,16 @@ toLayout user route model = ++ route.params.build , docs = Just "build/view" } + , { name = "Approve Build" + , content = + "vela approve build --org " + ++ route.params.org + ++ " --repo " + ++ route.params.repo + ++ " --build " + ++ route.params.build + , docs = Just "build/approve" + } , { name = "Restart Build" , content = "vela restart build --org " diff --git a/src/elm/Pages/Org_/Repo_/Build_/Graph.elm b/src/elm/Pages/Org_/Repo_/Build_/Graph.elm index c007a18c5..083f28cbd 100644 --- a/src/elm/Pages/Org_/Repo_/Build_/Graph.elm +++ b/src/elm/Pages/Org_/Repo_/Build_/Graph.elm @@ -70,7 +70,17 @@ toLayout user route model = ++ route.params.repo ++ " --build " ++ route.params.build - , docs = Just "cli/pipeline/validate" + , docs = Just "build/view" + } + , { name = "Approve Build" + , content = + "vela approve build --org " + ++ route.params.org + ++ " --repo " + ++ route.params.repo + ++ " --build " + ++ route.params.build + , docs = Just "build/approve" } , { name = "Restart Build" , content = diff --git a/src/elm/Pages/Org_/Repo_/Build_/Pipeline.elm b/src/elm/Pages/Org_/Repo_/Build_/Pipeline.elm index 5dd256193..6fe1cc6cb 100644 --- a/src/elm/Pages/Org_/Repo_/Build_/Pipeline.elm +++ b/src/elm/Pages/Org_/Repo_/Build_/Pipeline.elm @@ -67,7 +67,17 @@ toLayout user route model = ++ route.params.repo ++ " --build " ++ route.params.build - , docs = Just "cli/pipeline/validate" + , docs = Just "build/view" + } + , { name = "Approve Build" + , content = + "vela approve build --org " + ++ route.params.org + ++ " --repo " + ++ route.params.repo + ++ " --build " + ++ route.params.build + , docs = Just "build/approve" } , { name = "Restart Build" , content = diff --git a/src/elm/Pages/Org_/Repo_/Build_/Services.elm b/src/elm/Pages/Org_/Repo_/Build_/Services.elm index ef8f6c39a..a483bb64b 100644 --- a/src/elm/Pages/Org_/Repo_/Build_/Services.elm +++ b/src/elm/Pages/Org_/Repo_/Build_/Services.elm @@ -71,7 +71,17 @@ toLayout user route model = ++ route.params.repo ++ " --build " ++ route.params.build - , docs = Just "cli/pipeline/validate" + , docs = Just "build/view" + } + , { name = "Approve Build" + , content = + "vela approve build --org " + ++ route.params.org + ++ " --repo " + ++ route.params.repo + ++ " --build " + ++ route.params.build + , docs = Just "build/approve" } , { name = "Restart Build" , content = @@ -114,6 +124,31 @@ toLayout user route model = ++ " --service 1" , docs = Just "service/view" } + , { name = "List Logs" + , content = + "vela get logs --org " + ++ route.params.org + ++ " --repo " + ++ route.params.repo + ++ " --build " + ++ route.params.build + , docs = Just "log/get" + } + , { name = "View Log Help" + , content = "vela view log -h" + , docs = Just "log/view" + } + , { name = "View Service Log Example" + , content = + "vela view log --org " + ++ route.params.org + ++ " --repo " + ++ route.params.repo + ++ " --build " + ++ route.params.build + ++ " --service 1" + , docs = Just "log/view" + } ] , crumbs = [ ( "Overview", Just Route.Path.Home_ )