Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

g1t.sh
57 linesCodeBlameRaw
1{
2 "$schema": "../../node_modules/wrangler/config-schema.json",
3 "name": "g1t-integrations",
4 "account_id": "1e6f2cffa3f445920836e8ebe446bb58",
5 "compatibility_date": "2026-09-26",
6 // Runs next to its database: a request makes several queries in turn,
7 // and each would otherwise cross the distance to it.
8 "placement": { "mode": "off" },
9 "main": "build/index.js",
10 "build": { "command": "node ../../scripts/build-rust-worker.mjs" },
11 // Reached only through service bindings. Outside systems reach it
12 // through the API, at https://api.g1t.sh/hooks/<connection>.
13 "workers_dev": false,
14 "d1_databases": [
15 {
16 "binding": "DB",
17 "database_name": "g1t-integrations",
18 "database_id": "86c6c1a9-4192-42d8-8c59-8da8d4f99c5e",
19 "migrations_dir": "migrations"
20 }
21 ],
22 "services": [
23 { "binding": "IDENTITY", "service": "g1t-identity" },
24 { "binding": "WORK", "service": "g1t-work" },
25 // Where a transferred repository is now, for moving its links.
26 { "binding": "REPOS", "service": "g1t-repos" },
27 // An imported repository's project takes GitHub's description.
28 { "binding": "PROJECTS", "service": "g1t-projects" }
29 ],
30 // Work starting on, and finishing, what an outside system is waiting on.
31 // Every minute: sessions started on workspaces' Anthropic accounts are
32 // followed until they end (src/agent_sessions.rs).
33 "triggers": { "crons": ["* * * * *"] },
34 "queues": {
35 "consumers": [{ "queue": "g1t-events-integrations", "max_batch_size": 20, "max_batch_timeout": 1, "max_retries": 3, "dead_letter_queue": "g1t-events-dlq" }]
36 },
37 "vars": {
38 "API_URL": "https://api.g1t.sh",
39 "SITE_URL": "https://g1t.sh",
40 // Ask g1t reads g1t through its own MCP server, as the person asking,
41 // with a read-only credential identity makes for each answer. Over
42 // its address, not a service binding: the API ships after this
43 // service (deploy/stack.jsonc's stages).
44 "MCP_URL": "https://mcp.g1t.sh",
45 // g1t's GitHub App (src/github.rs), for installations, imports and
46 // its webhook at API_URL/hooks/github. Secrets:
47 // GITHUB_APP_PRIVATE_KEY (the downloaded .pem, PKCS#1 or PKCS#8) and
48 // GITHUB_APP_WEBHOOK_SECRET. Leave the slug empty to turn it off.
49 "GITHUB_APP_ID": "5203641",
50 "GITHUB_APP_SLUG": "g1t-sh",
51 "GITHUB_APP_CLIENT_ID": "Iv23liZS94alfjIUn1eW"
52 },
53 // Secret: INTEGRATIONS_KEY, 64 hex characters. Connections' secrets are
54 // sealed with it; without it nothing can be connected.
55 // Logs of a tenth of requests: every page and event asks it.
56 "observability": { "enabled": true, "head_sampling_rate": 0.1 }
57}