github / github/vscode-github-actions
Support local actions defined in repository
- 主要语言
- TypeScript
- 星标
- 660
- 派生
- 213
- PR 合并指标
- 30 天内没有已合并 PR
描述
**Is your feature request related to a problem? Please describe.**
I have a few locally created actions in the `.github/actions` directory but validation and autocomplete don't seem to work on these actions.
I have the following yaml file at `.github/actions/wait-for-deployment-action`
```yaml
name: Wait for deployment
description: |
Block until a deployment is finished for the pushed commit,
and get the URL for running any further tests.
branding:
icon: clock
color: black
inputs:
github-token:
description: Your GitHub access token
required: true
environment:
description: The deployment environment to wait for
timeout:
description: The number of seconds after which to fail if no deployment is found.
default: 30
interval:
description: The number of seconds to wait between repeated checks for deployments.
default: 5
sha:
description: |
The commit SHA to wait for. Defaults to the current commit SHA. For PRs, this is the merge commit SHA.
So provide ${{ github.event.pull_request.head.sha }} instead.
outputs:
url:
description: The deployment URL
id:
description: The GitHub deployment id
runs:
using: node16
main: dist/index.js
```
The below shows an attempt to autocomplete the params expected by a local action:
**Describe the solution you'd like**
For local actions to be validated and provide autocomplete for locally defined actions.
贡献指南
调研方向
Start by locating the extension entry points for workflow validation and action-parameter autocomplete, then compare their handling of the local action metadata at `.github/actions/wait-for-deployment-action`. Use the shown action YAML, including its inputs and outputs, as the validation and completion case; done means local actions provide both without losing existing behavior.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- github-actions, typescript
- 领域
- developer-experience, tooling
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100