Skip to content

Conversation

@robaone-redshelf
Copy link
Contributor

@robaone-redshelf robaone-redshelf commented Nov 4, 2025

Description

This pull request significantly enhances the automated PR and release description generation by improving API robustness with retry logic, implementing more effective chunking for large diffs, and refining the PR update process to preserve existing content using a new insertion script and comment tags.

Changes

  • Implemented API retry logic with exponential backoff for Gemini.
  • Enhanced diff chunking to handle large files and lines more robustly.
  • Introduced insert_release_description.js for intelligent PR body updates via comment tags.
  • Refactored auto-release-description to generate detailed release notes.
  • Adjusted chunking parameters (MAX_CHUNKS, CHUNK_DELAY) for efficiency.

Verification

  • Run auto-pr-description on a large diff to test chunking.
  • Verify auto-release-description correctly updates a PR with existing content.
  • Confirm API retry logic handles transient failures (e.g., rate limits).

Ticket

https://virdocs.atlassian.net/browse/CORE-2803

@robaone-redshelf robaone-redshelf marked this pull request as ready for review November 4, 2025 20:23
- Ensure content always ends with newline before delimiter
- Simplify delimiter handling to prevent 'Matching delimiter not found' errors
- Use printf to consistently add newline before closing delimiter
@robaone-redshelf
Copy link
Contributor Author

This change tested successfully.

@robaone-redshelf robaone-redshelf merged commit 2d6e53a into develop Nov 4, 2025
11 checks passed
@robaone-redshelf robaone-redshelf deleted the ar-CORE-2803-update-the-release-description-code branch November 4, 2025 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant