Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

How I built a GitHub Actions connector for Cognee — and what it can do for your AI agents

说明与用途

为 Cognee 构建了 GitHub Actions 连接器,将工作流定义、运行记录和作业失败信息导入 AI 内存层,支持对 CI 历史的 AI 查询。

问题

Your CI history lives in GitHub but your AI agent can’t query it.

结果

The connector ingests workflow definitions, run attempts, and job details, caching unchanged files and supporting incremental sync. It limits results to 1,000 per query and handles deletions via tombstones.

工作流

  • 1. Install the connector package.
  • 2. Create a source with repositories and a GitHub token: source = github_actions_source(repositories=["owner/repo"], token="...").
  • 3. Ingest data into Cognee: await cognee.remember(source, dataset_name="github_actions").
  • 4. Query the ingested data: answer = await cognee.search("Which workflows failed on main this week?")

证据

Adds a GitHub Actions data-source connector for cognee-community, following the Notion connector conventions.

来源

Workflow definitions — triggers, job names, step names, uses: action references. Raw shell scripts and env/secrets are excluded.

来源

All tests use a fully mocked FakeGitHubClient — no live token required.

来源

  • 记录日期: 2026-10-15T12:56:06.403Z