mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Expose gitCoAuthor setting in settings.json and document it
This commit is contained in:
@@ -306,6 +306,20 @@ Settings are organized into categories. All settings should be placed within the
|
|||||||
- **Default:** `1000`
|
- **Default:** `1000`
|
||||||
- **Requires restart:** Yes
|
- **Requires restart:** Yes
|
||||||
|
|
||||||
|
#### `git`
|
||||||
|
|
||||||
|
- **`git.gitCoAuthor.enabled`** (boolean):
|
||||||
|
- **Description:** Automatically add a Co-authored-by trailer to git commit messages when commits are made through Qwen Code.
|
||||||
|
- **Default:** `true`
|
||||||
|
|
||||||
|
- **`git.gitCoAuthor.name`** (string):
|
||||||
|
- **Description:** The name to use in the Co-authored-by trailer.
|
||||||
|
- **Default:** `"Qwen-Coder"`
|
||||||
|
|
||||||
|
- **`git.gitCoAuthor.email`** (string):
|
||||||
|
- **Description:** The email to use in the Co-authored-by trailer.
|
||||||
|
- **Default:** `"qwen-coder@alibabacloud.com"`
|
||||||
|
|
||||||
#### `mcp`
|
#### `mcp`
|
||||||
|
|
||||||
- **`mcp.serverCommand`** (string):
|
- **`mcp.serverCommand`** (string):
|
||||||
@@ -418,6 +432,11 @@ Here is an example of a `settings.json` file with the nested structure, new as o
|
|||||||
"callCommand": "bin/call_tool",
|
"callCommand": "bin/call_tool",
|
||||||
"exclude": ["write_file"]
|
"exclude": ["write_file"]
|
||||||
},
|
},
|
||||||
|
"git": {
|
||||||
|
"gitCoAuthor": {
|
||||||
|
"enabled": false
|
||||||
|
}
|
||||||
|
},
|
||||||
"mcpServers": {
|
"mcpServers": {
|
||||||
"mainServer": {
|
"mainServer": {
|
||||||
"command": "bin/mcp_server.py"
|
"command": "bin/mcp_server.py"
|
||||||
|
|||||||
@@ -992,6 +992,7 @@ export async function loadCliConfig(
|
|||||||
enableToolOutputTruncation: settings.tools?.enableToolOutputTruncation,
|
enableToolOutputTruncation: settings.tools?.enableToolOutputTruncation,
|
||||||
eventEmitter: appEvents,
|
eventEmitter: appEvents,
|
||||||
useSmartEdit: argv.useSmartEdit ?? settings.useSmartEdit,
|
useSmartEdit: argv.useSmartEdit ?? settings.useSmartEdit,
|
||||||
|
gitCoAuthor: settings.git?.gitCoAuthor,
|
||||||
output: {
|
output: {
|
||||||
format: outputSettingsFormat,
|
format: outputSettingsFormat,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -933,6 +933,58 @@ const SETTINGS_SCHEMA = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
git: {
|
||||||
|
type: 'object',
|
||||||
|
label: 'Git',
|
||||||
|
category: 'Git',
|
||||||
|
requiresRestart: false,
|
||||||
|
default: {},
|
||||||
|
description: 'Git-related settings.',
|
||||||
|
showInDialog: false,
|
||||||
|
properties: {
|
||||||
|
gitCoAuthor: {
|
||||||
|
type: 'object',
|
||||||
|
label: 'Git Co-Author',
|
||||||
|
category: 'Git',
|
||||||
|
requiresRestart: false,
|
||||||
|
default: {},
|
||||||
|
description:
|
||||||
|
'Settings for automatic Co-authored-by trailer in git commits.',
|
||||||
|
showInDialog: false,
|
||||||
|
properties: {
|
||||||
|
enabled: {
|
||||||
|
type: 'boolean',
|
||||||
|
label: 'Enable Git Co-Author',
|
||||||
|
category: 'Git',
|
||||||
|
requiresRestart: false,
|
||||||
|
default: true,
|
||||||
|
description:
|
||||||
|
'Automatically add Co-authored-by trailer to git commit messages.',
|
||||||
|
showInDialog: true,
|
||||||
|
},
|
||||||
|
name: {
|
||||||
|
type: 'string',
|
||||||
|
label: 'Co-Author Name',
|
||||||
|
category: 'Git',
|
||||||
|
requiresRestart: false,
|
||||||
|
default: 'Qwen-Coder' as string | undefined,
|
||||||
|
description: 'The name to use in the Co-authored-by trailer.',
|
||||||
|
showInDialog: true,
|
||||||
|
},
|
||||||
|
email: {
|
||||||
|
type: 'string',
|
||||||
|
label: 'Co-Author Email',
|
||||||
|
category: 'Git',
|
||||||
|
requiresRestart: false,
|
||||||
|
default: 'qwen-coder@alibabacloud.com' as string | undefined,
|
||||||
|
description: 'The email to use in the Co-authored-by trailer.',
|
||||||
|
showInDialog: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
mcp: {
|
mcp: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
label: 'MCP',
|
label: 'MCP',
|
||||||
|
|||||||
Reference in New Issue
Block a user