8 Commits

Author SHA1 Message Date
Claude
91d2ef3fcf Add optional auto-review parameter
- Add auto-review input parameter (defaults to true for backward compatibility)
- Skip code review when auto-review is set to false
- Update README with usage examples for disabling auto-review
- Support conditional reviews based on labels or other criteria
2025-11-14 15:16:06 +00:00
Claude
9014acfb36 Upgrade to Claude Sonnet 4.5 model
- Update model from deprecated claude-3-5-sonnet-20241022 to claude-sonnet-4-5
- Claude 3.5 Sonnet was deprecated in November 2025
- Claude Sonnet 4.5 offers better performance, especially for coding tasks
- Rebuild dist/index.js with updated model
2025-11-14 14:44:21 +00:00
Claude
183d49dd6a Improve code resilience, error handling, and logging
Major improvements:
- Add comprehensive logging with @actions/core (info, warning, error, debug)
- Implement retry logic with exponential backoff for all network operations
- Add timeout handling for API calls (2 minute default)
- Improve error handling with specific messages and context
- Add input validation for API keys and PR numbers
- Implement rate limit handling (429 responses)
- Add diff size limits to prevent API token overflow
- Fix flawed markdown escape logic in review posting
- Add progress indicators with core.startGroup/endGroup
- Mask sensitive data (API keys) in logs
- Add unhandled rejection and exception handlers
- Improve git operation error handling and output capture
- Add JSDoc comments for all functions
- Fix npm security vulnerabilities

The action is now much more resilient to:
- Network failures and transient errors
- API rate limiting
- Large diffs
- Timeout issues
- Invalid inputs

Logging improvements provide better visibility into:
- Operation progress and timing
- Retry attempts
- Error context and debugging information
- Resource usage (diff size, review length)
2025-11-14 14:30:56 +00:00
pacnpal
785bb103c6 Update action.js 2025-02-10 17:25:49 -05:00
pacnpal
d1c6a98994 Update action.js 2025-02-10 17:08:21 -05:00
pacnpal
1b84aff159 Update action.js 2025-02-10 16:18:34 -05:00
pacnpal
fc5d87701c Update action.js 2025-02-10 14:52:55 -05:00
pacnpal
7ba8e02de8 Initial commit 2024-12-10 18:42:08 -05:00