Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add changes summary to CreatePRTool #932

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

codegen-sh[bot]
Copy link
Contributor

@codegen-sh codegen-sh bot commented Mar 21, 2025

This PR enhances the create_pr function to show a summary of the changes included in the PR.

Changes Made

  1. Added a new changes_summary field to the CreatePRObservation class
  2. Created a generate_changes_summary function that parses git diffs to create a human-readable summary
  3. Updated the create_pr function to generate and include the summary in the response

Summary Format

The changes summary includes:

  • Number of files changed
  • Number of lines added/deleted
  • List of modified files grouped by file extension

This makes it easier for users to understand what changes are included in the PR without having to click through to GitHub.

Closes CG-1234

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.

0 participants