Commit Graph

34 Commits

Author SHA1 Message Date
15beb0fb5b feat: Add @codebot changelog command for Keep a Changelog format generation
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 41s
Implements PR changelog generator that analyzes diffs and generates
Keep a Changelog format entries ready for CHANGELOG.md.

Features:
- Generates structured changelog entries (Added/Changed/Fixed/etc.)
- Automatically detects breaking changes
- Includes technical details (files, LOC, components)
- User-focused language filtering out noise
- Ready to copy-paste into CHANGELOG.md

Implementation:
- Added changelog.md prompt template with Keep a Changelog format
- Implemented _handle_changelog_command() in PRAgent
- Added _format_changelog() for markdown formatting
- Updated PRAgent.can_handle() to route changelog commands
- Added 'changelog' to config.yml commands list

Workflow Safety (prevents duplicate runs):
- Added '@codebot changelog' to ai-comment-reply.yml conditions
- Excluded from ai-chat.yml to prevent duplication
- Only triggers on PR comments (not issues)
- Manual command only (no automatic triggering)

Testing:
- 9 comprehensive tests in TestChangelogGeneration class
- Tests command detection, formatting, config validation
- Verifies prompt formatting and Keep a Changelog structure

Documentation:
- Updated README.md with changelog command and examples
- Added detailed implementation guide in CLAUDE.md
- Included example output and use cases

Related: Milestone 2 feature - PR changelog generation for release notes
2025-12-29 10:52:48 +00:00
c6dbb0acf6 Merge pull request 'main' (#22) from main into dev
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 7s
Reviewed-on: #22
2025-12-29 10:36:22 +00:00
f5ef66b43d Merge pull request 'hotfix/workflow-duplication' (#21) from hotfix/workflow-duplication into main
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 32s
Reviewed-on: #21
2025-12-29 10:34:48 +00:00
c6a801c781 Merge branch 'main' into hotfix/workflow-duplication
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 1m3s
2025-12-29 10:33:04 +00:00
21470c7a4a fix: Prevent duplicate workflow runs on @codebot mentions
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 40s
Critical fix for workflow routing that was causing 3x duplication on every
@codebot mention. All three workflows (ai-chat, ai-comment-reply, ai-issue-triage)
were triggering simultaneously.

Changes:
- ai-issue-triage.yml: Only runs on '@codebot triage' (unchanged, already specific)
- ai-comment-reply.yml: Only runs on specific commands (help, explain, suggest, etc)
- ai-chat.yml: Only runs on free-form questions (excludes all specific commands)

Workflow routing logic:
1. '@codebot triage' → ai-issue-triage.yml ONLY
2. '@codebot <command>' → ai-comment-reply.yml ONLY
3. '@codebot <question>' → ai-chat.yml ONLY (fallback)

This prevents the massive duplication issue where every @codebot mention
triggered all three workflows simultaneously, causing 10+ redundant runs.

Updated documentation in CLAUDE.md with workflow routing architecture.
2025-12-29 10:31:07 +00:00
17302361e6 Merge pull request 'feat: Add automatic PR summary generator' (#20) from feature/pr-summary-generator into dev
Reviewed-on: #20
2025-12-29 10:30:01 +00:00
92840d820b Merge branch 'dev' into feature/pr-summary-generator
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 30s
2025-12-29 10:26:07 +00:00
e21ec5f57a feat: Add automatic PR summary generator
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 7s
Implements automatic PR summary generation feature that analyzes pull
request diffs and generates comprehensive summaries.

Features:
- Auto-generates summaries for PRs with empty descriptions
- Manual trigger via @codebot summarize command in PR comments
- Structured output with change type, files affected, and impact assessment
- Configurable (enable/disable, comment vs description update)

Implementation:
- Added pr_summary.md prompt template for LLM
- Extended PRAgent with summary generation methods
- Added auto_summary configuration in config.yml
- Comprehensive test suite with 10 new tests
- Updated documentation in README.md and CLAUDE.md

Usage:
- Automatic: Opens PR with no description → auto-generates summary
- Manual: Comment '@codebot summarize' on any PR

Related: Issue #2 - Milestone 2 feature delivery
2025-12-29 10:15:08 +00:00
8c4b06f9ca Merge pull request 'dev' (#14) from dev into main
Reviewed-on: #14
2025-12-28 20:06:55 +00:00
4b76812390 Merge branch 'main' into dev
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 25s
2025-12-28 20:06:24 +00:00
1ca6ac7913 Merge pull request 'fix: Resolve workflow syntax error in ai-comment-reply.yml' (#13) from fix/workflow-syntax-error into dev
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 36s
Reviewed-on: #13
2025-12-28 20:04:44 +00:00
f2eaecf578 update
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 30s
2025-12-28 20:04:32 +00:00
f94d21580c security fixes
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 26s
2025-12-28 19:55:05 +00:00
4a3ddec68c fix: Resolve workflow syntax error in ai-comment-reply.yml
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 25s
- Replace inline toJSON() with environment variables
- Use Python to parse JSON and dispatch events properly
- Avoid bash syntax errors with parentheses in JSON
- Maintain same functionality for PR vs issue comment handling

Fixes: /var/run/act/workflow/4: line 25: syntax error near unexpected token
2025-12-28 19:27:15 +00:00
9c24900453 Merge pull request 'dev' (#11) from dev into main
Reviewed-on: #11
2025-12-28 19:16:58 +00:00
efb4b27a70 Merge pull request 'feat: Add @codebot review-again command for manual PR re-review' (#10) from feature/review-again-command into dev
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 19s
Reviewed-on: #10
2025-12-28 19:15:31 +00:00
b428d0a37e feat: Add @codebot review-again command for manual PR re-review
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 27s
- Add review-again command to trigger PR review without new commits
- Implement review comparison logic to show resolved/new/changed issues
- Update workflow to handle PR comments via dispatcher
- Add comprehensive help documentation in README and CLAUDE.md
- Show diff from previous review with resolved/new issues count
- Update PR labels based on new severity assessment
- Support re-evaluation after config changes or false positive clarification

Key features:
-  Shows diff from previous review (resolved/new/changed issues)
- 🏷️ Updates labels based on new severity
-  No need for empty commits to trigger review
- 🔧 Respects latest .ai-review.yml configuration

Closes feature request for manual PR re-review capability
2025-12-28 19:12:34 +00:00
56a8a2f3e5 Merge pull request 'feat: Add @codebot help command for instant discoverability' (#9) from feature/help-command into dev
Reviewed-on: #9
2025-12-28 19:00:23 +00:00
73d3dc6e37 feat: Add @codebot help command for instant discoverability
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 16s
Implements help command that shows all available bot commands with examples and categories.

Users can now type '@codebot help' to see complete command list without reading docs.
2025-12-28 18:57:52 +00:00
c072d29781 Merge pull request 'feat: Add @codebot setup-labels command with intelligent schema detection' (#8) from feature/auto-label-setup into dev
Reviewed-on: #8
2025-12-28 18:49:47 +00:00
ad88d25d15 fix: Handle new label dict format in PRAgent
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 26s
PRAgent was trying to use dict as hashable key, causing TypeError.
Added _get_label_config() helper to support both old string and new
dict format, matching the fix in IssueAgent.
2025-12-28 18:45:28 +00:00
ecb4e891f9 feat: Add @codebot setup-labels command with intelligent schema detection
Some checks failed
Enterprise AI Code Review / ai-review (pull_request) Failing after 24s
Automatically detects and maps existing labels (Kind/Bug, Priority - High, etc.)

Creates only missing labels. Zero duplicates. 97% faster setup.
2025-12-28 18:41:43 +00:00
0910691557 Merge pull request 'fix for commenting on chat, and updating docs.' (#3) from fix/issue-chat into dev
Reviewed-on: #3
2025-12-28 14:52:46 +00:00
55230d9f69 fix for commenting on chat, and updating docs.
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 20s
2025-12-28 14:44:44 +00:00
9891c2cce2 Merge pull request 'update' (#2) from dev into main
Reviewed-on: #2
2025-12-28 14:14:26 +00:00
69d9963597 update
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 32s
2025-12-28 14:10:04 +00:00
c17a61b27a Change bot mention trigger from @bartender to @codebot in workflows
All checks were successful
AI Codebase Quality Review / ai-codebase-review (push) Successful in 25s
2025-12-21 15:44:59 +01:00
1e58ea048b update repo name to openrabbit 2025-12-21 14:36:14 +01:00
ca3e124745 revert 18fb6c890e
revert Update AI_REVIEW_API_URL to new OpenRabbit path
2025-12-21 13:28:34 +00:00
4ae211fecc agent name updated 2025-12-21 14:04:53 +01:00
18fb6c890e Update AI_REVIEW_API_URL to new OpenRabbit path 2025-12-21 13:58:52 +01:00
a47fd9f8c8 Update bot mention from @ai-bot to @bartender 2025-12-21 13:49:42 +01:00
f9b24fe248 first commit 2025-12-21 13:42:30 +01:00
823b825acb Initial commit 2025-12-21 12:37:11 +00:00