github / github/vscode-github-actions

Read-only editors for action.yml shows problems as if it were a workflow

未關閉
#618 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
TypeScript
星號
660
分支
213
PR 合併指標
30 天內沒有已合併 PR

描述

**Describe the bug**

Some diffs (but not all!) show a load of false positive Problems for `action.yml` treating it as if it were a workflow YAML file.

Possibly this only affects read-only diffs.

**To Reproduce**
Steps to reproduce the behavior:
1. Open a read-only diff of an `action.yml` file

**Expected behavior**
`action.yml` should be correctly identified as an action not a workflow, in diff views

**Screenshots**

Top: an unaffected diff; bottom: an affected read-only diff

Image

**Extension Version**
`0.32.3`

**Additional context**
(Originally opened in https://github.com/microsoft/vscode-pull-request-github/issues/8873 but it affects diffs unrelated to PRs)

貢獻指南

開啟貢獻指南

研究方向

Reproduce the issue by opening a read-only diff for an action.yml file and observe the false-positive Problems. Start by tracing how the extension distinguishes action metadata from workflow YAML in diff views, then verify that the file is identified as an action and no workflow-specific Problems appear.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
github-actions, typescript, vscode
領域
ci-cd, tooling
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
63/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。