gh run list
gh run list [flags]
列出最近的工作流运行。
请注意,为 `-w` 标志提供 `workflow_name` 不会获取已禁用的工作流。还要传递 `-a` 标志以使用 `workflow_name` 和 `-w` 标志获取已禁用的工作流运行。
选项
-a,--all- 包括已禁用的工作流
-b,--branch <string>- 按分支过滤运行
-c,--commit <SHA>- 按提交的 SHA 过滤运行
-
--created <date> - 按创建日期过滤运行
-e,--event <event>- 按触发运行的事件过滤运行
-q,--jq <expression>- 使用 jq 表达式过滤 JSON 输出
-
--json <fields> - 使用指定的字段输出 JSON
-L,--limit <int> (默认值 20)- 要获取的运行的最大数量
-s,--status <string>- 按状态过滤运行:{queued|completed|in_progress|requested|waiting|action_required|cancelled|failure|neutral|skipped|stale|startup_failure|success|timed_out}
-t,--template <string>- 使用 Go 模板格式化 JSON 输出;请参阅“gh help formatting”
-u,--user <string>- 按触发运行的用户过滤运行
-w,--workflow <string>- 按工作流过滤运行
从父命令继承的选项
-R,--repo <[HOST/]OWNER/REPO>- 使用 [HOST/]OWNER/REPO 格式选择另一个存储库
别名
gh run ls
JSON 字段
attempt, conclusion, createdAt, databaseId, displayTitle, event, headBranch, headSha, name, number, startedAt, status, updatedAt, url, workflowDatabaseId, workflowName