aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMaheshtheDev <[email protected]>2026-01-15 21:53:53 +0000
committerMaheshtheDev <[email protected]>2026-01-15 21:53:53 +0000
commit59c294b29998a861a870629d513f6da74b3d76ac (patch)
tree265c9fe27984c6d322ba2e51b0fc91bc2302698d /.github/workflows
parentchore: quick bugs squash across the elements and added few more changes (#671) (diff)
downloadsupermemory-59c294b29998a861a870629d513f6da74b3d76ac.tar.xz
supermemory-59c294b29998a861a870629d513f6da74b3d76ac.zip
feat: deep-research on user profile and tiptap integration (#672)01-14-feat_deep-research_on_user_profile
deep-research on user profile add novel integration tiptap 3.x integration
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/claude-code-review.yml66
1 files changed, 45 insertions, 21 deletions
diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml
index 44f4ab85..8564713b 100644
--- a/.github/workflows/claude-code-review.yml
+++ b/.github/workflows/claude-code-review.yml
@@ -3,21 +3,9 @@ name: Claude Code Review
on:
pull_request:
types: [opened, synchronize]
- # Optional: Only run on specific file changes
- # paths:
- # - "src/**/*.ts"
- # - "src/**/*.tsx"
- # - "src/**/*.js"
- # - "src/**/*.jsx"
jobs:
claude-review:
- # Optional: Filter by PR author
- # if: |
- # github.event.pull_request.user.login == 'external-contributor' ||
- # github.event.pull_request.user.login == 'new-developer' ||
- # github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
-
runs-on: ubuntu-latest
permissions:
contents: read
@@ -38,17 +26,53 @@ jobs:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
use_sticky_comment: true
prompt: |
- Please review this pull request and provide feedback on:
- - Code quality and best practices
- - Potential bugs or issues
- - Performance considerations
- - Security concerns
- - Test coverage
+ You are reviewing a PR for supermemory - a Turbo monorepo with multiple apps and packages.
+
+ ## Repository Structure Context
+
+ **Apps (apps/):**
+ - `web` - Next.js web application (no tests)
+ - `mcp` - Model Context Protocol server on Cloudflare Workers (no tests)
+ - `browser-extension` - WXT-based browser extension (no tests)
+ - `raycast-extension` - Raycast app extension (no tests)
+ - `docs` - Mintlify documentation site
+
+ **Published Packages (packages/) - with tests:**
+ - `tools` - AI SDK memory tools (Vitest)
+ - `ai-sdk` - supermemory AI SDK wrapper (Vitest)
+ - `openai-sdk-python` - Python OpenAI integration (pytest)
+ - `pipecat-sdk-python` - Python Pipecat integration (pytest)
+
+ **Internal Packages (packages/) - no tests:**
+ - `ui` - Shared React/Radix UI components
+ - `lib` - Shared utilities
+ - `hooks` - Custom React hooks
+ - `memory-graph` - D3-based graph visualization
+ - `validation` - Zod schemas
+
+ ## Review Instructions
+
+ 1. First, run `gh pr diff` to see what files changed
+
+ 2. Based on the changes, review for:
+ - **Code quality**: Follow Biome linting rules (double quotes, tabs, no default exports)
+ - **Type safety**: Ensure proper TypeScript usage
+ - **Security**: Check for injection vulnerabilities, credential exposure, unsafe patterns
+ - **Performance**: Look for unnecessary re-renders (React), N+1 queries, memory leaks
+
+ 3. **Test coverage** - ONLY review if changes touch these packages:
+ - `packages/tools/**` or `packages/ai-sdk/**` → Check for Vitest tests
+ - `packages/openai-sdk-python/**` or `packages/pipecat-sdk-python/**` → Check for pytest tests
+ - Skip test coverage review for apps and other packages (they have no test setup)
+
+ 4. **Package-specific concerns:**
+ - Published packages (tools, ai-sdk, memory-graph, *-python): Check for breaking API changes
+ - UI package: Check accessibility (a11y) and component API consistency
+ - Web app: Check for proper data fetching patterns (TanStack Query), Zustand state management
+ - MCP server: Check Hono routing and Cloudflare Workers compatibility
- Use the repository's CLAUDE.md for guidance on style and conventions. Be constructive and helpful in your feedback.
+ 5. Be concise and actionable. Focus on issues that matter, not style nitpicks (Biome handles that).
Use `gh pr comment` with your Bash tool to leave your review as a comment on the PR.
- # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
- # or https://docs.anthropic.com/en/docs/claude-code/sdk#command-line for available options
claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"'