Skip to content

gh workflow run --watch #12967

Description

@nyarly

Describe the feature or problem you’d like to solve

Often, when debugging a CI issue, there's a tight(-ish) loop of git commit -am "fix: CI"; git push; gh workflow run, then followed by some variation of gh run watch - which either requires choosing from a TUI list or (now) copypasta of the run ID from the gh workflow run.

It would be ideal to be able to either have a wicked gnarly one-liner to arrow-up to, or be able to script the "commit-run-watch-notify-log" loop. #12695 gets us so close...

Proposed solution

gh workflow run --watch would be a great first step.

gh workflow run --output=json would also be great, since it would make using a tool like jq to pull the run ID out much easier

Additional context

> gh workflow run --output=json
{
  "status": "created",
  "run_id": 123412341234
  "probably": "other info"
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIgh-prrelating to the gh pr commandgh-runrelating to the gh run commandmore-info-neededMore info needed from user/contributor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions