Conversation
- Create reviewer_prompts/ directory with 7 specialized review philosophies. - Refactor main guidelines resolution logic into testable helper. - Update core/prompts/reviewer_prompt.md to be fully generic and behavior-driven. - Set 'general' (Robust Maintainer) as the default guideline for the action and CLI. - Ensure format and linting issues are skipped by the AI reviewer. - Update README.md and DESIGN.md with new guideline library documentation.
- Redirect missing arguments error to stderr. - Explicitly handle error from os.Getwd() to ensure system resilience.
- Move prompt library to core/prompts/library/. - Use Go embed to include prompt .md files into the binary. - Add GetLibraryPrompt helper to retrieve embedded content by name. - Restore default for --main-guidelines to 'general'. - Update CLI resolution logic to favor local files then embedded prompts. - Refactor Bazel configuration to support internal embedding. - Clean up unused imports and variables in main.go.
Update documentation to reflect the inclusion of REVIEWERS.md and personal.ai_code_review_guidelines.md in the prompt assembly.
|
[Maintenance] [cmd/ai_reviewer/main.go:187-194] This error handling masks the underlying [Observation] [action.yml:101-105] Since the action falls back to checking if a local file exists with the name of the provided guidelines, if a repository accidentally contains a file literally named [Observation] [cmd/ai_reviewer/main.go:88] |
- Use path.Join instead of filepath.Join for embed.FS access (must be forward slashes). - Update README.md to show --main-guidelines is optional with a default of 'general'.
Closes #27