cli / cli/cli

Proposal: Display Commit SHA in `gh run watch` output

Ouverte
#12,786 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
enhancement gh-run stale
Langage dominant
Go
Étoiles
46.3k
Forks
9k
Merge moyen
2 j 6 h
PR mergées (30 j)
97

Description

### Describe the feature or problem you’d like to solve

Currently, when using `gh run watch` to monitor an active workflow, the interface displays the workflow name and status, but it does not show the **Commit SHA** associated with the run being watched.

When multiple workflows are triggered in rapid succession (e.g., during a rebase or multiple hotfixes), it can be difficult to verify at a glance exactly which commit's execution is being monitored in the terminal without cross-referencing other commands or the Web UI.

### Proposed solution

I propose adding the **Commit SHA** (preferably the short 7-character hash) to the output of `gh run watch`.

**Benefits:**
* **Instant Confirmation:** Users can immediately verify they are watching the correct run that corresponds to their latest local `git push`.
* **Reduced Context Switching:** It eliminates the need to check `gh run list` or the GitHub UI just to find the hash of the currently watched run.
* **Better Monitoring Experience:** Provides the necessary Git context for developers who are debugging or waiting for a specific deployment to finish.

### Additional context

I previously submitted a Pull Request (**#12613**) to implement this feature for `gh run watch`. I am opening this issue to discuss the best placement for the SHA in the output to ensure it aligns with the GitHub CLI's existing UX and design standards. I am happy to refine the implementation based on the feedback from the maintainers.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par examiner la sortie existante de `gh run watch` et la pull request précédente #12613, puis suivez le point d’entrée de la commande pour l’affichage de l’exécution. Le travail est considéré comme terminé lorsque l’exécution surveillée inclut visiblement son SHA de commit à un emplacement cohérent avec la sortie existante de la CLI et que les tests concernés passent.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
git, go
Domaine
cli
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.