fix: .env contains harb-specific defaults that leak into non-harb sessions (#398)
Remove per-project settings from .env.example and env.sh defaults: - CODEBERG_REPO no longer defaults to johba/harb - WOODPECKER_REPO_ID no longer defaults to 2 - Remove deprecated HARB_REPO_ROOT alias - .env.example now points to projects/*.toml for per-project config Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6f5888c561
commit
d05a62bee0
2 changed files with 8 additions and 10 deletions
11
.env.example
11
.env.example
|
|
@ -2,11 +2,10 @@
|
|||
# Copy to .env and fill in your values.
|
||||
# NEVER commit .env to the repo.
|
||||
|
||||
# ── Target project ────────────────────────────────────────────────────────
|
||||
CODEBERG_REPO=johba/yourproject # org/repo slug on Codeberg
|
||||
PROJECT_REPO_ROOT=/home/you/yourproject # local clone of the target repo
|
||||
PRIMARY_BRANCH=main # main or master
|
||||
# PROJECT_NAME=yourproject # optional — auto-derived from CODEBERG_REPO
|
||||
# ── Per-project config ────────────────────────────────────────────────────
|
||||
# Project-specific settings (CODEBERG_REPO, PROJECT_REPO_ROOT, PRIMARY_BRANCH,
|
||||
# WOODPECKER_REPO_ID) now live in projects/*.toml — see projects/harb.toml
|
||||
# for an example. Do NOT set them here; they leak into every session.
|
||||
|
||||
# ── Auth tokens ───────────────────────────────────────────────────────────
|
||||
# Dev-agent token: push branches, create PRs, merge PRs.
|
||||
|
|
@ -22,7 +21,7 @@ REVIEW_BOT_TOKEN=
|
|||
# ── Woodpecker CI ─────────────────────────────────────────────────────────
|
||||
WOODPECKER_TOKEN=
|
||||
WOODPECKER_SERVER=http://localhost:8000
|
||||
WOODPECKER_REPO_ID=2 # numeric repo ID in Woodpecker DB
|
||||
# WOODPECKER_REPO_ID — now per-project, set in projects/*.toml [ci] section
|
||||
|
||||
# Woodpecker Postgres (for direct DB queries)
|
||||
WOODPECKER_DB_PASSWORD=
|
||||
|
|
|
|||
|
|
@ -31,14 +31,13 @@ fi
|
|||
export CODEBERG_TOKEN
|
||||
|
||||
# Project config
|
||||
export CODEBERG_REPO="${CODEBERG_REPO:-johba/harb}"
|
||||
export CODEBERG_REPO="${CODEBERG_REPO:-}"
|
||||
export CODEBERG_API="${CODEBERG_API:-https://codeberg.org/api/v1/repos/${CODEBERG_REPO}}"
|
||||
export CODEBERG_WEB="https://codeberg.org/${CODEBERG_REPO}"
|
||||
export PROJECT_NAME="${PROJECT_NAME:-${CODEBERG_REPO##*/}}"
|
||||
export PROJECT_REPO_ROOT="${PROJECT_REPO_ROOT:-${HARB_REPO_ROOT:-/home/${USER}/${PROJECT_NAME}}}"
|
||||
export HARB_REPO_ROOT="${PROJECT_REPO_ROOT}" # deprecated alias
|
||||
export PROJECT_REPO_ROOT="${PROJECT_REPO_ROOT:-/home/${USER}/${PROJECT_NAME}}"
|
||||
export PRIMARY_BRANCH="${PRIMARY_BRANCH:-master}"
|
||||
export WOODPECKER_REPO_ID="${WOODPECKER_REPO_ID:-2}"
|
||||
export WOODPECKER_REPO_ID="${WOODPECKER_REPO_ID:-}"
|
||||
export WOODPECKER_SERVER="${WOODPECKER_SERVER:-http://localhost:8000}"
|
||||
export CLAUDE_TIMEOUT="${CLAUDE_TIMEOUT:-7200}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue