搜索

PythonReactSEOPDF
GitHub Skill

gha

Diagnóstico de GitHub Actions failures

thiagofinch☆ 92 仓库 Stars66 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

GitHub Actions Diagnostics

Diagnóstico automático de falhas em GitHub Actions.

Uso

/gha                    # Verifica último workflow run
/gha [run_id]           # Analisa run específico
/gha --flaky           # Identifica testes flaky
/gha --history         # Histórico de falhas

O Que Faz

  1. Busca último workflow run com falha
  2. Baixa logs do job
  3. Analisa erro e identifica causa raiz
  4. Sugere correção

Execução Manual

Se precisar debugar manualmente:

# Listar workflows
gh run list --limit 10

# Ver detalhes de um run
gh run view [RUN_ID]

# Baixar logs
gh run view [RUN_ID] --log

# Ver jobs de um run
gh run view [RUN_ID] --job [JOB_ID]

Análise Automática

Quando acionado, JARVIS irá:

  1. Executar gh run list --status failure --limit 5
  2. Identificar o run mais recente
  3. Executar gh run view [ID] --log
  4. Analisar os logs buscando:
    • Erros de teste
    • Erros de build
    • Erros de lint
    • Timeout
    • Dependências faltando
  5. Reportar causa provável e sugerir fix

Padrões Comuns de Erro

Padrão Causa Provável Sugestão
npm ERR! Dependência npm ci ou limpar cache
ENOENT Arquivo faltando Verificar paths
timeout Teste lento/flaky Aumentar timeout ou otimizar
FAILED em test Teste quebrado Ver stack trace
TypeScript error Tipo incorreto Fix no código
ESLint Lint error Auto-fix ou manual

Exemplo de Output

╔══════════════════════════════════════════════════════════════════════════════╗
║  GITHUB ACTIONS DIAGNOSTIC                                                   ║
╠══════════════════════════════════════════════════════════════════════════════╣
║  Run ID:      12345678                                                       ║
║  Workflow:    CI                                                             ║
║  Status:      FAILED                                                         ║
║  Duration:    3m 42s                                                         ║
╠══════════════════════════════════════════════════════════════════════════════╣
║  CAUSA RAIZ:                                                                 ║
║  Test failure in src/__tests__/api.test.ts:42                                ║
║                                                                              ║
║  Error: Expected 200, got 404                                                ║
║                                                                              ║
║  SUGESTÃO:                                                                   ║
║  O endpoint /api/users foi removido ou renomeado.                            ║
║  Verificar se o route existe em src/routes/users.ts                          ║
╚══════════════════════════════════════════════════════════════════════════════╝

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-03-11
索引更新时间
2026-03-11
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!