Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Documentation Update for First Run ➔ gh-cache Branch, cache_key File, and JSON Escaping Guidance

未关闭
#37 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
停滞
技术栈
github-actions

调研方向

首先检查 action.yml 和 workflow 的 cache_key 设置,然后确定首次运行要求记录在哪里。记录创建 gh-cache 分支和匹配的缓存文件,并验证报告输出能够处理 HTML 引号,而不会导致 workflow 以代码 2 退出。

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

描述

awaiting-reporter

Great tool! It works for me now. However, I ran into a few undocumented setup issues during the first run that caused the workflow to exit with code 2.

1️⃣ Missing gh-cache branch

The first run failed with:

Branch gh-cache does not exist

Creating a branch named gh-cache resolved this.

2️⃣ Missing cache file matching cache_key

Next error on report:

cache-key-value not found in cache

Creating and pushing an empty file onto the gh-cache branch whose name matches the cache_key value in the workflow YAML fixed this issue.

3️⃣ JSON escaping issue in action.yml file in codebase:

Final error in report:

The line echo "issues=$issues" >> "$GITHUB_OUTPUT" fails whenever HTML contains quotations. This likely happens due to the line trying to echo out unescaped quotes.

Proposed fix:

issues_escaped=$(echo "$issues" | jq -c . | sed 's/%/%25/g; s/\r/%0D/g; s/\n/%0A/g')
echo "issues=$issues_escaped" >> "$GITHUB_OUTPUT"
主要语言
TypeScript
星标
375
派生
42
平均合并
1 天 7 小时
30 天内合并 PR
6

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

github/accessibility-scanner 的其他 Issue

查看 github/accessibility-scanner 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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