You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
blockedenhancementa request to improve CLIgh-runrelating to the gh run commandpitchpitched internally for prioritisationplatformProblems with the GitHub platform rather than the CLI client
Describe the feature or problem you’d like to solve
The new gh run actions are awesome, love them! The utility of gh run watch is very promising, but the slow feedback (when you have long CI runs) makes it more of a passive "put in another window" command, instead of an active "follow along for the status" command for me. (I know, 1.9.0 just came out and already asking for more 🙄 )
Proposed solution
I'm not sure if it's already on your roadmap, but streaming the logs from the run would make this feature usable for active feedback for CI runs, instead of having to go to the web UI to check failures, etc.
Additional context]
From the above screenshot, it's a great summary but I can't take action from here.
Reacted by Alessandro Dal Grande, Carlos Iriarte, Philippe Blain, Ievgen Pyrogov, Noah Masur, Gal Aharoni, Beshoy Girgis, Aidan Steele, Hamza Pavlovič, Jens Dahl Møllerhøj and 70 more
Thanks for the issue :) this is definitely in our roadmap; it would have been in the 1.9.0 ship but unfortunately there's no API support yet for streaming logs and as such is blocked for now.
Reacted by Austin Cawley-Edwards, Alessandro Dal Grande, Ben Plunkert, Noah Masur, Mahmoud Hanafy, Karol Baraniecki, Nathan S. Martins and Chindriș Mihai - Alexandru
I think the value of this issue is beyond active feedback: I often find myself trying to grep for particular issues, my current workaround is to download the raw logs and then search.
While the web UI is very neat and slick, it breaks down for very large logs.
@mollerhoj I think that using an endpoint not in the API is too much risk as it can change at any moment without us being informed and there are no guarantees as to what it might return. I would rather wait for an official API endpoint. @vilmibm do you agree?
Reacted by Taro, Hamza Pavlovič, spezifisch, Armaiz Adenwala, James Cuzella, FireFragment, Phani Rithvij, Tobias Gårdhus, Nathan S. Martins and Chindriș Mihai - Alexandru
+1 from me too. Having to go into gh run view --log-failed is a step I'd like to eliminate. At the very least, include the recommended command for viewing the failure - in the watch output (as it appears in the view output)
I wonder if it be against the ToS to build a tool that sniffs the authenticated WebSockets subscriptions of a mitm-proxied headless browser and start some lightweight ws clients to perform the actual live tailing...
fyi, the API part looks partly unblocked now. Since early November GET /repos/{owner}/{repo}/actions/jobs/{job_id}/steps/{step_number}/logs returns log of a finished step while the job is still running (checked today on cpython, home-assistant and rust). Running step, job log and run log are still 404 until they finish.
So gh run watch could probably print steps one by one when they finish, not wait the whole run. One thing: gh api needs --allow-escape-sequences for these logs, otherwise it errors.
blockedenhancementa request to improve CLIgh-runrelating to the gh run commandpitchpitched internally for prioritisationplatformProblems with the GitHub platform rather than the CLI client
Activity
vilmibm commentedon Apr 22, 2021
Thanks for the issue :) this is definitely in our roadmap; it would have been in the 1.9.0 ship but unfortunately there's no API support yet for streaming logs and as such is blocked for now.
austince commentedon Apr 22, 2021
Oh, that's interesting – how does the web UI do it?
ciriarte commentedon Jul 27, 2021
I think the value of this issue is beyond active feedback: I often find myself trying to grep for particular issues, my current workaround is to download the raw logs and then search.
While the web UI is very neat and slick, it breaks down for very large logs.
phil-blain commentedon Aug 26, 2021
I agree this would be a very very useful feature.
Maybe this issue could be tagged
actions?galah92 commentedon Oct 22, 2021
Would very much love that as well.
mollerhoj commentedon Jan 8, 2022
Would the maintainers be open to a PR that parsed the web UI instead of using the API?
Actually, we would just use the endpoint github uses to pull the logs?
change_idseem to just be an increasing number.samcoe commentedon Jan 13, 2022
@mollerhoj I think that using an endpoint not in the API is too much risk as it can change at any moment without us being informed and there are no guarantees as to what it might return. I would rather wait for an official API endpoint. @vilmibm do you agree?
vilmibm commentedon Jan 31, 2022
I'm not comfortable with parsing the web UI or with using unpublished API endpoints.
mollerhoj commentedon Feb 1, 2022
fair enough :-)
dentarg commentedon May 19, 2022
@samcoe @vilmibm @mislav Is it planned (when?) to add the API the CLI needs to do this? Could not see anything relevant at https://github.com/github/roadmap/issues?q=is%3Aissue+logs :/
samcoe commentedon May 23, 2022
@dentarg Unfortunately, no status update at this time as to when this feature will be added to the API.
bmitchinson commentedon Feb 2, 2023
Would love this <3
mkdior commentedon Feb 6, 2023
Please implement this. Tired of accessing the UI just for this...
devurandom commentedon Sep 25, 2023
#6741 might be a duplicate.
dpewsey commentedon Mar 4, 2024
Any update on this?
armaizhipcamp commentedon May 10, 2024
+1 - would love to add real-time logs for a cli command!
lhamoudi commentedon May 15, 2024
+1 from me too. Having to go into
gh run view --log-failedis a step I'd like to eliminate. At the very least, include the recommended command for viewing the failure - in thewatchoutput (as it appears in theviewoutput)soundstep commentedon Sep 18, 2024
I was looking for a way to do just that, that would be great!
rarescosma commentedon Oct 11, 2024
I wonder if it be against the ToS to build a tool that sniffs the authenticated WebSockets subscriptions of a mitm-proxied headless browser and start some lightweight ws clients to perform the actual live tailing...
JK - I actually had a stab at it: https://github.com/rarescosma/octotail/
sulaimangari commentedon Jun 23, 2025
Pretty surprised this is actually not implemented yet. Kudos to @rarescosma for his initiative.
--logoption togh run watch#11978 as a duplicate of this issuedsm2005 commentedon Jan 1, 2026
is there an issue for the blocking API gap that we can follow?
nvim: pr.nvim absorbs ci.nvim - a live CI pane on pr://files (#373)
verdrellw60-max commentedon Sep 18, 2026
Nezhinskiy commentedon Nov 12, 2026
fyi, the API part looks partly unblocked now. Since early November
GET /repos/{owner}/{repo}/actions/jobs/{job_id}/steps/{step_number}/logsreturns log of a finished step while the job is still running (checked today on cpython, home-assistant and rust). Running step, job log and run log are still 404 until they finish.So
gh run watchcould probably print steps one by one when they finish, not wait the whole run. One thing:gh apineeds--allow-escape-sequencesfor these logs, otherwise it errors.More details here: https://github.com/orgs/community/discussions/75518#discussioncomment-19562148