Skip to content

Conversation

@rostilos
Copy link
Owner

@rostilos rostilos commented Jan 4, 2026

This pull request introduces several improvements and refactorings to the analysis engine and deployment configuration, focusing on enhanced support for incremental code analysis, improved PR diff handling, and codebase organization. The most important changes are grouped below.

Incremental Analysis and PR Diff Handling:

  • Added support for incremental analysis in AiAnalysisRequest and its implementation, including new fields and builder methods for AnalysisMode, deltaDiff, and commit hashes. This enables more precise and efficient code analysis workflows. [1] [2] [3] [4] [5] [6]
  • Improved branch analysis logic to prefer PR diffs over commit diffs when available, ensuring all files from the original PR are analyzed. Added logic to look up PR numbers based on commit hashes and fetch the correct diff accordingly. [1] [2] [3]

Codebase Refactoring and Organization:

  • Renamed client package to aiclient in the analysis engine, updating all relevant exports, opens, and import statements for consistency and clarity. [1] [2] [3] [4] [5]
  • Refactored VCS info retrieval in BranchAnalysisProcessor to use the unified getEffectiveVcsRepoInfo() accessor, simplifying and consolidating logic for obtaining repository information.

Branch Issue Management:

  • Ensured branch issue counts are always updated after mapping code analysis issues, even on initial analysis, improving accuracy of issue statistics.

Configuration and Integration Enhancements:

  • Added configuration for frontend base URL and GitLab OAuth integration in application.properties.sample, along with documentation for setting up GitLab OAuth applications. [1] [2]
  • Enabled AST splitter for RAG pipeline by default in .env.sample, supporting improved document chunking for retrieval-augmented generation.

Submodule Update:

  • Updated the frontend submodule to a newer commit.This pull request introduces several enhancements and fixes across the codebase, mainly focused on improving incremental analysis support, enriching DTOs with detection metadata, and refining VCS diff handling. It also adds configuration options for GitLab OAuth and updates the frontend submodule.

Key changes include:

Incremental Analysis & DTO Enhancements

  • Extended the AiAnalysisRequest interface and its implementation to support incremental analysis by adding fields for analysisMode, deltaDiff, previousCommitHash, and currentCommitHash, along with corresponding builder methods. [1] [2] [3] [4] [5] [6]
  • Updated the IssueDTO record to include detection metadata such as analysisId, prNumber, commitHash, and detectedAt, and modified the fromEntity method to populate these fields. [1] [2]

VCS Diff Handling Improvements

  • Added new methods to the VcsOperationsService interface for fetching pull request diffs (getPullRequestDiff) and commit range diffs (getCommitRangeDiff), enabling more precise diff retrieval for incremental and PR-based analyses.
  • Enhanced the BranchAnalysisProcessor to use PR diffs when a source PR number is provided, ensuring all files from the original PR are analyzed, and improved branch issue count updates after mapping. [1] [2] [3] [4]
  • Fixed a bug in issue reconciliation by using the correct field (id instead of issueId) for AI issue mapping.

Configuration & Integration Updates

  • Added configuration and documentation for GitLab OAuth integration in application.properties.sample, including instructions and new properties for client ID, secret, and base URL.
  • Introduced a new property for the frontend base URL used in email templates.
  • Enabled AST-based splitting in the RAG pipeline sample environment configuration.

Module & Utility Updates

  • Exported new GitLab-related DTO and config packages in the module descriptor for broader accessibility.
  • Updated a comment in DiffContentFilter to reference the correct module (vcs-mcp).

Frontend

  • Updated the frontend submodule to the latest commit.

rostilos and others added 30 commits December 29, 2025 11:38
…pic + openai + google providers compatibility for MCP client. MCP-client error handling
…ting in repository. Fix issue with non-resolving issues duplicates ( branch reconciliation )
… issue deduplication; enhance prompt builder with detailed instructions
feat: Add AST-based code chunking support with new splitter and confi…
…revious issues and updating prompt instructions for unresolved issues
feat: Enhance branch reconciliation by restoring missing diffs from p…
Enhanced Filtering and Query Capabilities, Issues API improvements
feat: Add GitLab support with configuration, client, and API actions
rostilos and others added 3 commits January 5, 2026 00:35
…ality ( + re-apply webhook + small bugfix on branch issues count )
feat: Implement webhook management and VCS connection change functionalyty + bugfix
@coderabbitai
Copy link

coderabbitai bot commented Jan 4, 2026

Important

Review skipped

Too many files!

148 files out of 298 files are above the max files limit of 150.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

rostilos and others added 24 commits January 5, 2026 12:01
feat: Enhance webhook setup for REPOSITORY_TOKEN connections with ful…
feat: Add GitLab support to VcsMcpClientFactory for client creation
feat: Add GitLab personal/repository token support in VCS connection …
…uest and branch events

- Added GitHubPullRequestWebhookHandler to handle pull request events from GitHub.
- Introduced GitHubWebhookParser for parsing GitHub webhook payloads.
- Created GitLabBranchWebhookHandler for handling branch push events in GitLab.
- Developed GitLabMergeRequestWebhookHandler to manage merge request events from GitLab.
- Implemented GitLabWebhookParser for parsing GitLab webhook payloads.
- Refactored AllowedCommandUserService and ProjectService to utilize unified VCS repo bindings.
- Updated ReviewRequestDto to include GitLab as a supported VCS provider.
feat: Implement GitHub and GitLab webhook handlers for pull/merge req…
incremental RAG updates ( fixes )
fix: Ensure proper categorization of files in incremental RAG updates
fix: Update file loading logic to handle relative paths correctly in …
fix: Enhance collection existence check to support aliases in Qdrant
fix: Enhance GitLabReportingService to support inline comments and im…
fix: Enhance GitLab OAuth handling for repository onboarding and webh…
changes -> diffs ( gitlab MR diff retrieval API changes )
…d analysis updates

- Added target branch name and current commit hash to AI client services for GitHub and GitLab.
- Implemented findPullRequestForCommit method in GitHubOperationsService to retrieve PRs associated with commits.
- Implemented findPullRequestForCommit method in GitLabOperationsService to retrieve MRs associated with commits.
- Created GitHubPrMergeWebhookHandler to handle PR merge events and trigger branch reconciliation.
- Created GitLabMrMergeWebhookHandler to handle MR merge events and trigger branch reconciliation.
- Updated AnalysisIssueController and ProjectAnalyticsController to support new issue resolution context (resolvedByPr and resolvedCommitHash).
- Enhanced IssueStatusUpdateRequest to include resolvedByPr and resolvedCommitHash fields.
- Updated AnalysisService to handle new resolution metadata when updating issue status.
- Improved prompt builder documentation for resolved issues.
- Removed outdated IMPLEMENTATION_SUMMARY.md file.
@rostilos rostilos merged commit 477f0e6 into main Jan 8, 2026
1 check passed
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.

2 participants