Merge pull request #6494 from cli/run-number

gh run list --json: add `number` field
This commit is contained in:
Mislav Marohnić 2022-11-01 19:40:34 +01:00 committed by GitHub
commit afef80e988
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"`