feat: Jira Peer Review Integration & Zhipu AI Provider#26
Draft
ipanov-ritech wants to merge 4 commits into
Draft
feat: Jira Peer Review Integration & Zhipu AI Provider#26ipanov-ritech wants to merge 4 commits into
ipanov-ritech wants to merge 4 commits into
Conversation
Initial implementation of peer review feature that validates PRs against linked Jira tickets: - Add PeerReviewIntegration class with ticket extraction and analysis - Add JiraMcpClient for MCP-based Jira communication - Add JiraSubAgent for AI-powered requirement validation - Add types for Jira tickets, acceptance criteria, and validation results - Extend analyze command with --peer-review flag - Update config loader to support peerReview configuration section The feature extracts ticket references from PR titles, branch names, and commit messages, then uses AI to validate that code changes satisfy the ticket's acceptance criteria. Work in progress - build verification pending. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Fix LangChain import path (langchain/output_parsers -> @langchain/core/output_parsers) - Fix TypeScript type casting issues in jira-mcp-client.ts - Refactor peer review to use ProviderFactory for multi-provider support - Peer review now uses the same provider/model as the main PR analysis 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add Zhipu AI provider with Anthropic-compatible API support - Fix peerReview config being stripped by Zod validation (add schema) - Make criteriaId optional in AC validation to prevent parsing errors - Update README with comprehensive peer review documentation - Update README with Zhipu AI provider details - Add verbose debug output for peer review troubleshooting 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Resolved conflicts: - README.md: Combined peer review and static analysis documentation - src/cli/commands/analyze.command.ts: Merged imports and output logic 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds two major features to PR Agent:
1. 🎫 Jira Peer Review Integration
Validates PRs against linked Jira tickets like a senior developer would:
2. 🤖 Zhipu AI Provider
Adds support for Zhipu AI using their Anthropic-compatible API endpoint.
Changes
ZhipuProviderclass with Anthropic-compatible APIpeerReviewsection to Zod config validation schema (was being stripped)criteriaIdoptional in AC validation to prevent parsing errorsConfiguration
{ "peerReview": { "enabled": true, "provider": "jira", "instanceUrl": "https://your-company.atlassian.net", "email": "your-email@company.com", "apiToken": "your-jira-api-token", "defaultProject": "PROJ" } }Example Output
Test Plan
🤖 Generated with Claude Code