Skip to content

Provide more info on run/log from gh run watch, especially/only on error #6741

Description

@petrbouchal

Describe the feature or problem you’d like to solve

When I watch a run and it fails, I typically want to go inspect the log, which currently requires me to switch the browser and click through the web interface. It would be great to have more information immediately or a simple way to get more information, especially when a run ends in error. Even viewing the log/run is quite difficult as I do not typically have the run ID to hand

Proposed solution

It may be useful to provide some or more of the following:

  • a link to the run (as the output of gh run view currently does)
  • a link to the log
  • make it easy to directly view the log through a command hint
  • provide a menu-based option to view the log or open it in the browser

How will it benefit CLI and its users?

Faster way to understanding what went wrong without opening the browser and clicking or without figuring out another command and ID.

Activity

  1. vilmibm commented on Dec 19, 2022

    @vilmibm
    Contributor

    Just to help me understand -- is the functionality of gh run view <id> --log-failed useful? because if a hint to run that isn't currently printed with <id> filled in I am definitely in favor of adding that

  2. added
    needs-designAn engineering task needs design to proceed
    coreThis issue is not accepting PRs from outside contributors
    and removed on Dec 19, 2022
  3. petrbouchal commented on Dec 19, 2022

    @petrbouchal
    Author

    Yes, that is useful! And having the hint would be great - would save copy-pasting the ID as you say.

    However, looking at how overwhelming the log can be when printed raw in the console, a link pointing directly to the log online may be as/more helpful in some cases.

  4. vilmibm commented on Dec 20, 2022

    @vilmibm
    Contributor

    cool, I think we could hint to both.

  5. Nidacoke commented on Apr 11, 2023

    @Nidacoke
  6. devurandom commented on Sep 25, 2023

    @devurandom

    #3484 seems related.

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

    coreThis issue is not accepting PRs from outside contributorsenhancementa request to improve CLIgh-runrelating to the gh run commandneeds-designAn engineering task needs design to proceed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions