Skip to content

Commit d2980a8

Browse files
relaunch RepoDoc - test suite green
1 parent ac87f21 commit d2980a8

137 files changed

Lines changed: 11823 additions & 9692 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcheck.log

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[baseline-browser-mapping] The data in this module is over two months old. To ensure accurate Baseline data, please update: `npm i baseline-browser-mapping@latest -D`
2+
▲ Next.js 16.0.7 (Turbopack)
3+
- Local: http://localhost:3012
4+
- Network: http://192.168.1.38:3012
5+
- Environments: .env
6+
7+
✓ Starting...
8+
⚠ The "middleware" file convention is deprecated. Please use "proxy" instead. Learn more: https://nextjs.org/docs/messages/middleware-to-proxy
9+
✓ Ready in 4.4s
10+
○ Compiling / ...
11+
GET / 200 in 10.4s (compile: 9.3s, proxy.ts: 120ms, render: 949ms)
12+
[baseline-browser-mapping] The data in this module is over two months old. To ensure accurate Baseline data, please update: `npm i baseline-browser-mapping@latest -D`
13+
[?25h

.env.example

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# ─── Database ──────────────────────────────────────────────
2+
# Postgres with the pgvector extension enabled.
3+
DATABASE_URL="postgresql://user:password@localhost:5432/repodoc"
4+
# Direct connection (bypasses pooling) for migrations.
5+
DIRECT_URL="postgresql://user:password@localhost:5432/repodoc"
6+
7+
# ─── Auth (Clerk) ──────────────────────────────────────────
8+
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_...
9+
CLERK_SECRET_KEY=sk_test_...
10+
CLERK_WEBHOOK_SECRET=whsec_...
11+
12+
# ─── AI ────────────────────────────────────────────────────
13+
# Used for embeddings and primary chat completions.
14+
GEMINI_API_KEY=
15+
# Fallback LLM provider used when Gemini is rate-limited or down.
16+
OPENROUTER_API_KEY=
17+
18+
# ─── GitHub ────────────────────────────────────────────────
19+
# Personal access token for higher GitHub API rate limits and
20+
# private-repo access. Optional - public repos work without it.
21+
GITHUB_TOKEN=
22+
23+
# ─── Payments (Gumroad) ────────────────────────────────────
24+
# Shared secret embedded in the Gumroad "Ping" URL configured in
25+
# Settings → Advanced → Ping:
26+
# https://YOUR_DOMAIN/api/gumroad-webhook?secret=<this value>
27+
GUMROAD_WEBHOOK_SECRET=
28+
# Optional. Defaults match the URLs hardcoded in src/app/pricing/page.tsx
29+
# (the suffix after `/l/` in your Gumroad product URLs). Override only if
30+
# you create new products.
31+
GUMROAD_PROFESSIONAL_PERMALINK=
32+
GUMROAD_ENTERPRISE_PERMALINK=
33+
34+
# ─── App ───────────────────────────────────────────────────
35+
NEXT_PUBLIC_APP_URL=http://localhost:3000
36+
37+
# ─── Optional ──────────────────────────────────────────────
38+
# Upstash Redis used for distributed locking. Falls back to
39+
# in-process locking when unset.
40+
UPSTASH_REDIS_REST_URL=
41+
UPSTASH_REDIS_REST_TOKEN=

.github/workflows/ci.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
concurrency:
10+
group: ci-${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
verify:
15+
name: lint, typecheck, test
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 15
18+
19+
env:
20+
DATABASE_URL: postgresql://user:pass@localhost:5432/repodoc_test
21+
DIRECT_URL: postgresql://user:pass@localhost:5432/repodoc_test
22+
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: pk_test_ci
23+
CLERK_SECRET_KEY: sk_test_ci
24+
GEMINI_API_KEY: ci_gemini_key
25+
OPENROUTER_API_KEY: ci_openrouter_key
26+
GITHUB_TOKEN_FOR_LOADER: ci_github_token
27+
STRIPE_SECRET_KEY: sk_test_ci
28+
STRIPE_WEBHOOK_SECRET: whsec_ci
29+
NEXT_PUBLIC_APP_URL: http://localhost:3000
30+
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
35+
- name: Setup Node
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: 20
39+
cache: npm
40+
41+
- name: Install dependencies
42+
run: npm ci
43+
44+
- name: Generate Prisma client
45+
run: npx prisma generate
46+
47+
- name: Lint
48+
run: npm run lint
49+
50+
- name: Typecheck
51+
run: npm run type-check
52+
53+
- name: Test
54+
run: npm run test:ci

0 commit comments

Comments
 (0)