github / github/vscode-github-actions

Links to specific step logs and duplicate step names

オープン
#181 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
TypeScript
スター
660
フォーク
213
PR マージ指標
30日以内にマージされた PR はありません

説明

**Describe the bug**
Links to specific step logs implemented in #170 finds step number by step name, but step name may duplicate. Looks like the step number should be retrieved from UI (globe icon of step with which index is clicked?).
https://github.com/github/vscode-github-actions/blob/bed6eac0cb7c76c1487f50402111e30d67c1354b/src/commands/openWorkflowStepLogs.ts#L13

**To Reproduce**
Steps to reproduce the behavior:
1. Clone https://github.com/muzimuzhi/hello-github-actions and open it with vscode
2. Find the 5th run of workflow "Test GitHub Actions itself"
3. Expand steps of its only job "Hello GitHub Actions", click the globe icon next to the second step named "Run dummy commands", also the 4th step
4. https://github.com/muzimuzhi/hello-github-actions/actions/runs/4902036880/jobs/8753647810#step:3:1 opened

![image](https://github.com/github/vscode-github-actions/assets/6376638/e83b3802-0e2f-48d5-8494-ba17dc5174be)

**Expected behavior**
https://github.com/muzimuzhi/hello-github-actions/actions/runs/4902036880/jobs/8753647810#step:4:1 opened. Note it should be `#step:4:1`, not `#step:3:1`.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Extension Version**
`v0.25.7`

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

リンク先の src/commands/openWorkflowStepLogs.ts から始め、hello-github-actions リポジトリと 5 回目の workflow 実行を使って、重複名のケースを再現します。クリックした step がどのように識別されるかを追跡し、次に 2 番目の「Run dummy commands」リンクをクリックすると #step:3:1 ではなく #step:4:1 が開くことを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
github, typescript
領域
devtools
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。