Skip to content

feat: update git collector for RepoIntelData schema#5

Merged
avifenesh merged 1 commit intomainfrom
feat/repo-intel-collector-update
Mar 15, 2026
Merged

feat: update git collector for RepoIntelData schema#5
avifenesh merged 1 commit intomainfrom
feat/repo-intel-collector-update

Conversation

@avifenesh
Copy link
Contributor

Summary

  • Add recentChanges field to hotspot output
  • Add confidence field to aiAttribution output

Test plan

  • Collector output matches new RepoIntelData schema

Add recentChanges to hotspot output and confidence to aiAttribution.
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request updates the git data collector to conform to a new RepoIntelData schema. It introduces new fields for recent changes in file hotspots and confidence levels in AI attribution, while also streamlining the data by removing outdated commitShape metrics and adjusting convention-related fields. These changes ensure the collector provides more relevant and structured data for downstream consumers.

Highlights

  • Schema Update for Git Collector: The git collector has been updated to align with the new RepoIntelData schema, changing references from git-map to repo-intel in the underlying agent-analyzer calls.
  • Hotspot Data Enhancement: The hotspot output now includes a recentChanges field, providing more granular insights into recent file activity.
  • AI Attribution Confidence: A confidence field has been added to the aiAttribution output, indicating the confidence level of the AI attribution.
  • Data Structure Adjustments: The commitShape data structure has been removed, and the conventions object now uses usesScopes instead of scopes to reflect changes in the schema.
Changelog
  • lib/collectors/git.js
    • Updated references from git-map to repo-intel in documentation and agent-analyzer calls.
    • Added recentChanges field to the hotspots output.
    • Added confidence field to the aiAttribution output.
    • Removed the commitShape data structure from the collected metrics.
    • Replaced the scopes field with usesScopes in the conventions output.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the git collector to align with the new RepoIntelData schema from the agent-analyzer binary. The changes include switching from git-map to repo-intel, adding recentChanges to hotspots and confidence to AI attribution, and updating the data structure for commit conventions. The commitShape field has also been removed. The implementation is solid, with appropriate default values to ensure robustness against missing data from the analyzer. The changes are consistent and correctly reflect the new schema.

@avifenesh avifenesh merged commit 090f0c2 into main Mar 15, 2026
4 checks passed
@avifenesh avifenesh deleted the feat/repo-intel-collector-update branch March 15, 2026 16:08
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