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

[workshop-sync] workshop/20-persistent-memory.md: cache-memory frontmatter uses non-existent `ttl:` field instead of `retention-days:`

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
92/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
yaml
领域
documentation

调研方向

打开 workshop/20-persistent-memory.md,并将其中的 cache-memory 示例与 gh-aw 的 memory.md 参考或已发布的 cache-memory 参考进行比较。将无效的 ttl: 7d 示例和表格行替换为 retention-days: 以及整数描述,然后验证此步骤中的其他内容没有变化。

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

描述

documentation

Workshop file reviewed

workshop/20-persistent-memory.md

Problem

The step teaches an incorrect cache-memory frontmatter field. It shows:

tools:
  cache-memory:
    key: daily-status-seen-issues
    ttl: 7d

and documents it in a table:

| ttl: 7d | How long to keep cached data without a refresh. After 7 days of no runs the cache expires and the agent starts fresh. |

There is no ttl: field in the cache-memory schema, and gh-aw does not accept duration strings like 7d.

Current correct syntax

Per the gh-aw memory.md reference (and the published cache-memory reference), the field is retention-days:, an integer number of days (default 7, extendable up to 90):

tools:
  cache-memory:
    key: daily-status-seen-issues
    retention-days: 30

Suggested fix

  • Replace ttl: 7d with retention-days: 30 (or a chosen integer) in the frontmatter example.
  • Update the field-reference table row to describe retention-days: (integer, default 7, max 90) instead of ttl: 7d.
  • No other content in this step needs to change — the surrounding explanation of cache-memory's purpose and the read/write task-brief guidance remain accurate.

Generated by 🔍 Workshop Sync Check · copilot · auto · 100.4 AIC · ⌖ 5.62 AIC · ⊞ 8.2K · ◷

  • expires on Sep 29, 2026, 9:02 AM UTC
主要语言
JavaScript
星标
49
派生
20
平均合并
9 小时 44 分钟
30 天内合并 PR
25

环境准备

我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

githubnext/gh-aw-workshop 的其他 Issue

查看 githubnext/gh-aw-workshop 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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