yaju-is-always-watching-you/config.example.yaml
awayatan f411886d88
Some checks are pending
CI / test (push) Waiting to run
Split phrase list out into community-editable phrases.yaml
config.yaml previously mixed secrets with the phrase list, forcing
private-only edits. Now config supports phrases_file, which is loaded and
merged with any private phrases: entries, so the repo-tracked phrases.yaml
can be extended via PR while per-deployment additions stay private.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-26 23:27:27 +09:00

38 lines
1.5 KiB
YAML

# yaju-is-always-watching-you の設定ファイル例。
# コピーして config.yaml として使う。秘密情報が入るので config.yaml は絶対にコミットしないこと。
listen_addr: ":8080"
# 是正PRやコメント投稿時にリクエストの署名検証に使う共有シークレット。
# Forgejo側のWebhook設定(Settings > Webhooks)で入力する値と同じにする。
webhook_secret: "change-me"
forgejo:
# 自ホストのForgejoのベースURL
base_url: "https://git.example.dev"
# bot専用アカウントで発行したAPIトークン(Settings > Applications)。
# スコープは repository(write) + issue(write) で十分。
token: "change-me"
bot:
# 上のtokenを発行したbotアカウントのユーザー名。
# このアカウント自身の発言/pushには反応しない(無限ループ防止)。
username: "yaju-keisatsu-bot"
# 是正PR用に作成するブランチの接頭辞。
branch_prefix: "bot/goroku-fix/"
# push時にスキャンする対象拡張子。空にすると全ファイルを対象にする。
target_extensions:
- ".md"
- ".txt"
- ".go"
- ".py"
- ".js"
- ".ts"
# phrases_file: リポジトリ同梱のコミュニティ管理語録リスト(phrases.yaml)を読む。
# 相対パスはこのconfig.yamlからの相対で解決される。
phrases_file: "./phrases.yaml"
# phrases: 自分の運用だけで使いたい追加語録があればここに書く(phrases_fileの内容とマージされる)。
# 空のままでもOK。
phrases: []