- A Cloudflare Account (the free tier is 100% fine)
node&npminstalled for managing the wrangler CLI- A GitHub Personal Access Token (with
reporead/write access) - A Jules API Key (
JULES_API_KEY)
Deploy the Cloudflare Worker to act as your webhook listener:
cd proxy
npm install wrangler -gThen, inject your remote secrets securely:
echo "YOUR_GITHUB_TOKEN" | npx wrangler secret put GITHUB_TOKEN
echo "YOUR_JULES_API_KEY" | npx wrangler secret put JULES_API_KEYRun deploy:
npx wrangler deployCloudflare will assign you a worker URL (e.g., https://jules-webhook-proxy...workers.dev).
Take this URL to your GitHub repository -> Settings -> Webhooks.
- Add a new webhook.
- Paste the URL.
- Content-type must be JSON.
- Select individual events: "Pull Requests" (Opened, Synchronized, Reopened).
GitHub Actions .github/workflows/jules-labels.yml relies on the jules: labels. The file is already committed to this repository. When you commit new code on PRs, the Github Labeler extension will tag it automatically and the proxy will parse those labels!