Skip to content

Add changes summary to CreatePRTool#932

Draft
codegen-sh[bot] wants to merge 2 commits intodevelopfrom
add-pr-changes-summary
Draft

Add changes summary to CreatePRTool#932
codegen-sh[bot] wants to merge 2 commits intodevelopfrom
add-pr-changes-summary

Conversation

@codegen-sh
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