ci: bot report workflows match any open issue by label and title, so a user-opened issue can capture the weekly report

未关闭 适合新手
#169 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
85/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
github-actions, yaml
领域
ci-cd

调研方向

阅读 .github/workflows/links.yml、.github/workflows/reverify.yml 和 .github/workflows/thumbs.yml 中的 issue 查找命令。确认每次查找只选择由机器人创建的 issue,并且忽略由用户打开且标题和标签匹配的 issue。

由索引模型根据 Issue 内容生成。

描述

hardening priority: low

Why it matters

The weekly link check, the monthly re-verify batch and the thumbnail report each find "their" issue by label and title prefix only. Any GitHub user can open an issue that matches. The bot then writes its report into that user's issue instead of the real one (currently #162). Report history ends up split, and the issue's author can rewrite the text the maintainer relies on.

Evidence

  • .github/workflows/links.yml:42: gh issue list --state open --label correction ..., then a title startswith("Link check:") filter.
  • .github/workflows/reverify.yml:41 and .github/workflows/thumbs.yml:62 use the same pattern.

.github/ISSUE_TEMPLATE/correction.yml applies the correction label automatically, and the title is free text.

Suggested approach

Add --author app/github-actions to each lookup, so only bot-authored issues match.

Done when

All three workflows filter by author. A user-opened issue with a matching title and label is ignored.

主要语言
JavaScript
星标
58
派生
15
平均合并
1 天 7 小时
30 天内合并 PR
12

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

TMHSDigital/Free-Game-Dev-Assets 的其他 Issue

查看 TMHSDigital/Free-Game-Dev-Assets 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。