feat: add review mode for PR code reviews

- Add 'review' as a new execution mode in action.yml
- Use default GitHub Action token (ACTIONS_TOKEN) for review mode
- Create review mode implementation with GitHub MCP tools included by default
- Move review-specific prompt to review mode's generatePrompt method
- Add comprehensive review workflow instructions for inline comments
- Fix type safety with proper mode validation
- Keep agent mode's simple inline prompt handling
This commit is contained in:
km-anthropic
2025-07-30 15:50:57 -07:00
parent 1f6e3225b0
commit bbc8c6d6d5
6 changed files with 312 additions and 9 deletions

View File

@@ -26,7 +26,7 @@ inputs:
# Mode configuration
mode:
description: "Execution mode for the action. Valid modes: 'tag' (default - triggered by mentions/assignments), 'agent' (for automation with no trigger checking)"
description: "Execution mode for the action. Valid modes: 'tag' (default - triggered by mentions/assignments), 'agent' (for automation with no trigger checking), 'review' (for code reviews with inline comments and suggestions)"
required: false
default: "tag"