github / github/vscode-github-actions

Reusable workflows can be referenced locally

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

説明

**Describe the bug**

According to the blog post, [Reusable workflows can be referenced locally](https://github.blog/changelog/2022-01-25-github-actions-reusable-workflows-can-be-referenced-locally/), however VS Code extension does not support it yet, and instead complains about the lack of `@{ref}` part.

**To Reproduce**
Steps to reproduce the behavior:
1. With this simple workflow:
```yml
jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- uses: '.github/workflows/reusable-build.yml'
```
3. See error

It doesn't matter whether the reusable file `reusable-build.yml` actually exists.

**Expected behavior**

`@{ref}` part should be optional.

**Screenshots**

Image

**Extension Version**

`v0.31.0`

**Additional context**

Bonus bug: tree/**undefined** in the ctrl+click URL leads to a Not Found page.

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

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

調査の方向性

提供されたワークフロー再現手順から始め、VS Code extension による `uses` 値の検証を追跡します。ローカルの `.github/workflows/reusable-build.yml` 参照が `@{ref}` サフィックスなしで受け入れられることを確認し、報告されている `tree/undefined` のケースについて ctrl+click 時の URL の挙動を確認します。完了条件は、有効なローカル参照でエラーが解消され、ナビゲーションでその URL が生成されなくなることです。

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

評価

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

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

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