github / github/vscode-github-actions
Reusable workflows can be referenced locally
- Ngôn ngữ chính
- TypeScript
- Star
- 660
- Fork
- 213
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
**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**
**Extension Version**
`v0.31.0`
**Additional context**
Bonus bug: tree/**undefined** in the ctrl+click URL leads to a Not Found page.
Hướng dẫn đóng góp
Hướng nghiên cứu
Start with the provided workflow reproducer and trace the VS Code extension's validation of the `uses` value. Confirm that a local `.github/workflows/reusable-build.yml` reference is accepted without an `@{ref}` suffix, and check the ctrl+click URL behavior for the reported `tree/undefined` case. Done means the error is removed for valid local references and navigation no longer produces that URL.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- github-actions, typescript, vscode
- Lĩnh vực
- ci-cd, devtools
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 48/100