Files
CV_Site_Nuxt/deploy/pr-agent/.env.example
T
Noel Sabia b84d353dcb
PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / Lint + typecheck (pull_request) Failing after 23s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 6s
PR Check / Dependency audit (pull_request) Failing after 10s
PR Check / Dockerfile lint (droast) (pull_request) Successful in 4s
docs(pr-agent): document the OpenCode Go session header
2026-10-30 21:11:19 +01:00

29 lines
1.0 KiB
Bash

# Copy to .env on server0 and fill in; never commit .env.
# chmod 600 .env
CONFIG__GIT_PROVIDER=gitea
# The API is reached over the Docker network; links in comments use the
# public URL instead.
GITEA__URL=http://gitea:3000
GITEA__WEB_URL=https://git.noelsabia.dev
# Bot user pr-agent, scoped token (read:repository, write:issue, read:user).
# Not the admin account and not a workflow secret.
GITEA__PERSONAL_ACCESS_TOKEN=
# Secret configured on the Gitea webhook. Required: the server rejects
# unsigned webhooks with HTTP 403.
GITEA__WEBHOOK_SECRET=
# OpenCode Go exposes an OpenAI-compatible chat-completions endpoint, so
# PR-Agent reaches it through its openai provider with a custom base URL.
CONFIG__MODEL=openai/glm-5.3-flash
CONFIG__FALLBACK_MODELS=["openai/glm-5.3"]
CONFIG__CUSTOM_MODEL_MAX_TOKENS=128000
OPENAI__API_BASE=https://opencode.ai/inference/go/openai/v1
OPENAI__KEY=
# OpenCode Go requires a session id header; a stable id is enough here.
LITELLM__EXTRA_HEADERS={"x-opencode-session":"pr-agent"}