- 移除 config 命令中未使用的 List 子命令及相关显示字段 - 统一 ChangelogCommand 和 CommitCommand 的 ContentGenerator 初始化方式
83 lines
2.2 KiB
TOML
83 lines
2.2 KiB
TOML
# QuiCommit Configuration Example
|
|
# Copy this file to your config directory and modify as needed:
|
|
# - Linux: ~/.config/quicommit/config.toml
|
|
# - macOS: ~/Library/Application Support/quicommit/config.toml
|
|
# - Windows: %APPDATA%\quicommit\config.toml
|
|
|
|
# ⚠️ IMPORTANT: Keyring Feature Update
|
|
# QuiCommit now uses system keyring to store API keys securely.
|
|
# This change may cause breaking changes to your existing configuration.
|
|
# If you encounter issues after updating, please reset your configuration:
|
|
# quicommit config reset --force
|
|
# Then reconfigure your settings using the CLI commands.
|
|
|
|
# Configuration version (for migration)
|
|
version = "1"
|
|
|
|
# Default profile to use when no repo-specific profile is set
|
|
default_profile = "personal"
|
|
|
|
# Profile definitions
|
|
[profiles.personal]
|
|
name = "personal"
|
|
user_name = "Your Name"
|
|
user_email = "your.email@example.com"
|
|
description = "Personal projects"
|
|
is_work = false
|
|
|
|
[profiles.work]
|
|
name = "work"
|
|
user_name = "Your Name"
|
|
user_email = "your.name@company.com"
|
|
description = "Work projects"
|
|
is_work = true
|
|
organization = "Your Company"
|
|
|
|
# SSH configuration for work profile
|
|
[profiles.work.ssh]
|
|
private_key_path = "/home/user/.ssh/id_rsa_work"
|
|
agent_forwarding = true
|
|
|
|
# GPG configuration for work profile
|
|
[profiles.work.gpg]
|
|
key_id = "YOUR_GPG_KEY_ID"
|
|
program = "gpg"
|
|
use_agent = true
|
|
|
|
# LLM Configuration
|
|
[llm]
|
|
# Provider: ollama, openai, anthropic, kimi, deepseek, openrouter
|
|
provider = "ollama"
|
|
# Model name (provider-appropriate)
|
|
model = "llama2"
|
|
# API base URL (optional, provider default will be used if not set)
|
|
# base_url = "http://localhost:11434"
|
|
max_tokens = 500
|
|
temperature = 0.7
|
|
timeout = 30
|
|
# API key storage: keyring, config, environment
|
|
api_key_storage = "keyring"
|
|
# Enable thinking/reasoning mode (deepseek, kimi, anthropic)
|
|
thinking_enabled = false
|
|
|
|
# Commit settings
|
|
[commit]
|
|
# Format: conventional or commitlint
|
|
format = "conventional"
|
|
auto_generate = true
|
|
|
|
# Tag settings
|
|
[tag]
|
|
version_prefix = "v"
|
|
auto_generate = true
|
|
|
|
# Changelog settings
|
|
[changelog]
|
|
path = "CHANGELOG.md"
|
|
auto_generate = true
|
|
|
|
# Repository-specific profile mappings
|
|
# [repo_profiles]
|
|
# "/path/to/work/project" = "work"
|
|
# "/path/to/personal/project" = "personal"
|