Skip to content

Add PR approval agent#1006

Draft
kvch wants to merge 3 commits into
mainfrom
pr-approval-agent
Draft

Add PR approval agent#1006
kvch wants to merge 3 commits into
mainfrom
pr-approval-agent

Conversation

@kvch

@kvch kvch commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Description

Please provide a brief description of the changes in this PR.

Related Issue(s)
  • Fixes #(issue number)
  • Closes #(issue number)
  • Related to #(issue number)

Type of Change

Please select the relevant option(s):

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📚 Documentation update
  • 🔧 Refactoring (no functional changes)
  • ⚡ Performance improvement
  • 🧪 Test coverage improvement
  • 🔨 Build/CI changes
  • 🧹 Code cleanup

Changes Made

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • All existing tests pass

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • Code is well-commented
  • Documentation updated where necessary

Additional Notes

kvch and others added 3 commits July 16, 2026 16:34
A lean, Go-native reimplementation of PostHog's stamphog reviewer, tuned
for pgstream. Deterministic gates run first and are authoritative — the
LLM can tighten their verdict but never loosen it. Triggered by the
"ai-review" label; posts a real approving review as a GitHub App or a
sticky comment on refusal/escalation, and dismisses stale approvals on
substantive pushes.

Lives in its own nested Go module so the Anthropic SDK dependency stays
out of pgstream's core go.mod.
@github-actions

Copy link
Copy Markdown

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/xataio/pgstream/tools/pr-approval-agent 0.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/xataio/pgstream/tools/pr-approval-agent/gates.go 0.00% (ø) 0 0 0
github.com/xataio/pgstream/tools/pr-approval-agent/github.go 0.00% (ø) 0 0 0
github.com/xataio/pgstream/tools/pr-approval-agent/main.go 0.00% (ø) 0 0 0
github.com/xataio/pgstream/tools/pr-approval-agent/render.go 0.00% (ø) 0 0 0
github.com/xataio/pgstream/tools/pr-approval-agent/reviewer.go 0.00% (ø) 0 0 0

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/xataio/pgstream/tools/pr-approval-agent/gates_test.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant