From aec2c5f3306f8c6a23135f42a76b5d0f97ee7001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Mon, 24 Oct 2022 15:40:07 +0200 Subject: [PATCH] run: add `number` json field to access run number --- pkg/cmd/run/shared/shared.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/cmd/run/shared/shared.go b/pkg/cmd/run/shared/shared.go index e73b2d7b5..d190c3ce1 100644 --- a/pkg/cmd/run/shared/shared.go +++ b/pkg/cmd/run/shared/shared.go @@ -55,6 +55,7 @@ var RunFields = []string{ "status", "conclusion", "event", + "number", "databaseId", "workflowDatabaseId", "workflowName", @@ -73,6 +74,7 @@ type Run struct { ID int64 workflowName string // cache column WorkflowID int64 `json:"workflow_id"` + Number int64 `json:"run_number"` Attempts uint8 `json:"run_attempt"` HeadBranch string `json:"head_branch"` JobsURL string `json:"jobs_url"`