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

chatcops test: GitHub Actions reporter

未关闭
#417 3 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@mohithreddydonala37 已经在做这个了。

开始于 2026年10月28日。

评估

这个 Issue 还没有评估数据。

描述

enhancement hacktoberfest testing

--reporter github prints workflow commands, so failed tests show up as annotations on the PR and in the job summary.

How reporters work
See REPORTERS in packages/cli/src/test/reporters/index.ts:32 and the Reporter interface above it. reporters/json.ts is the shortest example.

What to add (new reporters/github.ts)

  • For each failed test, an ::error file=<eval file>,line=<line>,title=<test name>::<reasons> line. The line is where the test starts in the YAML. The loader doesn't keep positions today, so get them from the yaml package's document API in loadFixture (packages/cli/src/test/load.ts:44) and keep them on the test without changing the schema for users.
  • Escape the message the way GitHub's toolkit does (%, \r, \n).
  • When GITHUB_STEP_SUMMARY is set, append a short Markdown table of the results to that file.

Acceptance criteria

  • Tests for the annotation lines with line numbers, escaping, and the summary file (point GITHUB_STEP_SUMMARY at a temp file)
  • Documented in website/src/content/docs/core/testing.mdx, with a changeset for @chatcops/cli (minor)
  • pnpm test:coverage and pnpm lint pass
主要语言
TypeScript
星标
13
派生
7
平均合并
3 小时 39 分钟
30 天内合并 PR
275

环境准备

从这里开始

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

codercops/chatcops 的其他 Issue

查看 codercops/chatcops 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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