Files
gitea-cli/config.example.env
timmy f28f20ba56 feat(config): support multiple Gitea profiles via GITEA_PROFILE env var
未設時讀 config.env(行為不變);設了讀 config.<profile>.env。
.gitignore 新增 config.*.env 但保留 config.example.env。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 16:18:16 +08:00

19 lines
616 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 複製此檔為 config.env 後填入實際值
# cp config.example.env config.env
#
# 多組 Gitea 站/帳號:另存為 config.<profile>.env
# 執行腳本時帶 GITEA_PROFILE=<profile> 切換。例如:
# cp config.example.env config.work.env # 編輯後
# GITEA_PROFILE=work bash scripts/list.sh
# Gitea 站台網址(不要結尾 /
GITEA_URL=http://your-gitea.example.com:3000
# Gitea 使用者名稱
GITEA_USER=your-username
# Gitea personal access token
# 產生位置: <GITEA_URL>/-/user/settings/applications
# 權限勾選: write:repository
GITEA_TOKEN=請貼上你的_access_token