Spaces:
Running
Running
Deploy 41a1ddeb
Browse files
.env.example
CHANGED
|
@@ -97,6 +97,8 @@ GITHUB_TOKEN=ghp_your_token_here
|
|
| 97 |
# Durable job/checkpoint path. Point this at a mounted persistent volume in a
|
| 98 |
# hosted deployment; the default local file is ephemeral on most containers.
|
| 99 |
# OPENCODEREVIEW_DB_PATH=/data/opencodereview/checkpoints.db
|
|
|
|
|
|
|
| 100 |
|
| 101 |
# βββ API security βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 102 |
# [Recommended for any public deployment] Require X-API-Key on React/API
|
|
|
|
| 97 |
# Durable job/checkpoint path. Point this at a mounted persistent volume in a
|
| 98 |
# hosted deployment; the default local file is ephemeral on most containers.
|
| 99 |
# OPENCODEREVIEW_DB_PATH=/data/opencodereview/checkpoints.db
|
| 100 |
+
# Optional Supabase Postgres URL for the durable review-jobs store.
|
| 101 |
+
# SUPABASE_DB_URL=postgresql://postgres:<password>@db.<project-ref>.supabase.co:5432/postgres
|
| 102 |
|
| 103 |
# βββ API security βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 104 |
# [Recommended for any public deployment] Require X-API-Key on React/API
|
supabase/migrations/20261020_create_review_jobs.sql
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
create table if not exists public.review_jobs (
|
| 2 |
+
id uuid primary key,
|
| 3 |
+
repo text not null,
|
| 4 |
+
pr_number integer not null check (pr_number > 0),
|
| 5 |
+
endpoint text,
|
| 6 |
+
status text not null,
|
| 7 |
+
payload jsonb not null,
|
| 8 |
+
created_at timestamptz not null default now(),
|
| 9 |
+
updated_at timestamptz not null default now()
|
| 10 |
+
);
|
| 11 |
+
|
| 12 |
+
create index if not exists review_jobs_status_idx on public.review_jobs (status);
|
| 13 |
+
|
| 14 |
+
alter table public.review_jobs enable row level security;
|
| 15 |
+
revoke all on public.review_jobs from anon, authenticated;
|
| 16 |
+
grant all on public.review_jobs to service_role;
|