Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

chatcops test: GitHub Actions reporter

Aberta
#417 3 comentários 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 1 dia

@mohithreddydonala37 já está trabalhando nisso.

Desde 28/10/2026.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

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
Linguagem predominante
TypeScript
Estrelas
13
Forks
7
Merge médio
3h 28min
PRs com merge (30d)
296

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de codercops/chatcops

Todas as issues de codercops/chatcops

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.