Bug: $__multiVar breaks on variable values that contain spaces
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 65/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- github, go
调研方向
在 repository 中找到 $__multiVar 宏的实现及其测试;issue 没有指定具体文件。先阅读选中的值是如何展开的,并运行相关的宏测试。完成标准是:多个单词组成的值在生成的限定符中带引号,而像 bug 这样的单词值仍能正确展开。
由索引模型根据 Issue 内容生成。
描述
$__multiVar(qualifier,$var) expands each selected value to qualifier:value without quotes. If a value contains a space, GitHub search treats only the first word as the qualifier value.
With a multi-value variable labels set to good first issue and bug, the query is:open $__multiVar(label,$labels) expands to:
is:open label:good first issue label:bug
GitHub reads this as the label good plus the free text first issue, so the query misses the issues labeled good first issue.
What you expected
The macro produces is:open label:"good first issue" label:bug, which is how GitHub search expects multi-word qualifier values.
How to reproduce
- Expand the macro:
is:open $__multiVar(label,$labels)withlabelsset togood first issueandbugproducesis:open label:good first issue label:bug. - Run both forms against the GitHub search API, for example on
grafana/grafana:is:open label:good first issuereturns 0 issues, andis:open label:"good first issue"returns 18.
Environment
- Plugin version: 2.9.3 (current
main)
- 主要语言
- Go
- 星标
- 311
- 派生
- 73
- 平均合并
- 1 天 20 小时
- 30 天内合并 PR
- 3
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
grafana/github-datasource 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
grafana/github-datasource#796 · 2 条评论 ·
-
Bug: Workflow_Runs query type consistently returns 0 rows when same URL+token directly returns data未关闭
难度 4/5 3-5 天 新手友好度 52/100
grafana/github-datasource#774 ·
-
难度 3/5 1-2 天 新手友好度 72/100
grafana/github-datasource#760 ·
-
难度 4/5 3-5 天 新手友好度 35/100
grafana/github-datasource#528 · 4 条评论 ·
-
难度 4/5 3-5 天 新手友好度 12/100
grafana/github-datasource#523 ·
查看 grafana/github-datasource 的全部 Issue
相似的 Issue
-
Aspect/API Severity/Major Type/Bug
难度 2/5 1-3 小时 新手友好度 66/100
wso2/api-platform#3899 ·
维护者通常 1 天内回复
-
bug needs-acceptance wg/agentic-context
难度 2/5 1-3 小时 新手友好度 78/100
vllm-project/semantic-router#5418 ·
维护者通常 1 天内回复
-
feature suggestion
难度 2/5 1-3 小时 新手友好度 88/100
openvibely/openvibely#1526 ·
维护者通常 1 天内回复
-
docs good first issue
难度 2/5 1-3 小时 新手友好度 85/100
Usenova-Labs/usenova-backend#36 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复