Skip to main content

PR Review Bot

Automatically review pull requests with AI when they’re opened or updated.

Setup

  1. Add KYMA_API_KEY as a repository secret (Settings > Secrets > Actions)
  2. Create .github/workflows/ai-review.yml:
Build the request body with jq, not string interpolation: a diff contains quotes and newlines, and pasting it straight into JSON produces a 400.

Changelog Generator

Generate release notes from commits:
git describe fails on the first release, when no earlier tag exists, so fall back to the last 50 commits. All three are in the free tier, so a workflow runs on the signup credit until you top up.
The 8,000-character cap on the diff is a cost choice, not a context limit — deepseek-v4-flash takes 1M tokens of context. Raise it if you would rather pay for the whole diff, or review file-by-file on large PRs.