Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,35 @@ on:
# - "src/**/*.jsx"

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run linter
run: npm run lint

- name: Type check
run: npx tsc --noEmit

- name: Build project
run: npm run build

- name: Run tests
run: npm test || echo "No tests configured - skipping"

claude-review:
needs: test
# Optional: Filter by PR author
# if: |
# github.event.pull_request.user.login == 'external-contributor' ||
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/claude.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,68 @@ on:
types: [submitted]

jobs:
test:
# Run tests for PR-related events; skip for issues (non-PR events)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
if: |
(github.event_name == 'issue_comment' && github.event.issue.pull_request) ||
(github.event_name == 'pull_request_review_comment') ||
(github.event_name == 'pull_request_review')

- name: Setup Node.js
uses: actions/setup-node@v4
if: |
(github.event_name == 'issue_comment' && github.event.issue.pull_request) ||
(github.event_name == 'pull_request_review_comment') ||
(github.event_name == 'pull_request_review')
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
if: |
(github.event_name == 'issue_comment' && github.event.issue.pull_request) ||
(github.event_name == 'pull_request_review_comment') ||
(github.event_name == 'pull_request_review')
run: npm ci

- name: Run linter
if: |
(github.event_name == 'issue_comment' && github.event.issue.pull_request) ||
(github.event_name == 'pull_request_review_comment') ||
(github.event_name == 'pull_request_review')
run: npm run lint

- name: Type check
if: |
(github.event_name == 'issue_comment' && github.event.issue.pull_request) ||
(github.event_name == 'pull_request_review_comment') ||
(github.event_name == 'pull_request_review')
run: npx tsc --noEmit

- name: Build project
if: |
(github.event_name == 'issue_comment' && github.event.issue.pull_request) ||
(github.event_name == 'pull_request_review_comment') ||
(github.event_name == 'pull_request_review')
run: npm run build

- name: Run tests
if: |
(github.event_name == 'issue_comment' && github.event.issue.pull_request) ||
(github.event_name == 'pull_request_review_comment') ||
(github.event_name == 'pull_request_review')
run: npm test || echo "No tests configured - skipping"

- name: Tests complete (or skipped for non-PR events)
run: echo "Test job completed"

claude:
# Only depend on test for PR-related events; for issues, we can run without tests
needs: test
if: |
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
Expand Down
4 changes: 4 additions & 0 deletions drizzle/0006_silly_richard_fisk.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ALTER TABLE "shop" DROP CONSTRAINT "shop_slug_unique";--> statement-breakpoint
ALTER TABLE "items" ADD COLUMN "slug" varchar(255);--> statement-breakpoint
ALTER TABLE "shop" DROP COLUMN "slug";--> statement-breakpoint
ALTER TABLE "items" ADD CONSTRAINT "items_slug_unique" UNIQUE("slug");
Loading
Loading