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

Use MonkeyCode's Free Tokens to Build a PR Summarizer in CI That Doesn't Spam

Описание и применение

Создайте один комментарий‑сводку для каждого PR, используя GitHub Actions, MonkeyCode и Python, чтобы избежать дублирования и тайм‑аутов.

Задача

AI review bots often spam pull requests with duplicate or flaky comments, eroding trust and cluttering discussions.

Результат

The workflow produces one concise, bullet‑point summary per PR, avoids duplicate comments, and respects free server limits with a 60‑second timeout.

Рабочий процесс

  • Trigger on pull_request opened or synchronize events
  • Checkout repository with full history
  • Generate diff against base branch
  • Call MonkeyCode free model via OpenAI-compatible endpoint with diff payload
  • Receive and parse summary
  • Upsert a single comment marked with <!-- ai-pr-summary -->, updating if it already exists

Доказательства

The fix is to make the workflow stateful in three places: Cache the model response by diff hash, Comment with a marker, Set a timeout

Источник

Replace the placeholder with the real value before running it

Источник

  • Дата записи: 2026-09-10T01:00:15.614Z