You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -114,21 +113,6 @@ Use this DevChat workflow to request code writing. Please input your specific re
114
113
}),
115
114
]);
116
115
break;
117
-
case"#commit_message":
118
-
chat.addMessages([
119
-
Message.create({
120
-
type: "user",
121
-
message: "Explain /commit_message",
122
-
}),
123
-
Message.create({
124
-
type: "bot",
125
-
message: `***/commit_message***
126
-
127
-
Use this DevChat workflow to request a commit message. Generally, you don't need to type anything else, but please give me the output of \`git diff\`. Of course, you don't need to manually execute the command and copy & paste its output. Simply click the "+" button and select \`git diff —cached\` to include only the staged changes, or \`git diff HEAD\` to include all changes.
128
-
`,
129
-
}),
130
-
]);
131
-
break;
132
116
case"#release_note":
133
117
chat.addMessages([
134
118
Message.create({
@@ -239,24 +223,33 @@ Generate a professionally written and formatted release note in markdown with th
239
223
if(children.includes("You can configure DevChat from")){
240
224
returnt("devchat.help");
241
225
}
242
-
// DevChat key is missing from your environment or settings
243
226
if(
244
-
children.includes("DevChat key is missing from your environment ")
227
+
children.includes(
228
+
"Devchat key is missing from your environment or settings"
229
+
)
245
230
){
246
231
returnt("devchat.setkey");
247
232
}
248
233
if(
249
234
children.includes(
250
-
"OPENAI_API_KEY is missing from your environment or settings"
235
+
"DevChat intelligently navigates your codebase using GPT-4."
251
236
)
252
237
){
253
-
// vscode 用
254
-
if(children.includes("Set OpenAI key")){
255
-
returnt("devchat.setOpenAIkey");
256
-
}else{
257
-
// idea 用
258
-
returnt("devchat.setkey");
259
-
}
238
+
returnt("ask-code-explain");
239
+
}
240
+
if(
241
+
children.includes(
242
+
"Use this DevChat workflow to request code writing. Please input your specific requirement"
243
+
)
244
+
){
245
+
returnt("code-explain");
246
+
}
247
+
if(
248
+
children.includes(
249
+
"Generate a professionally written and formatted release note in markdown with this workflow. I just need some basic information"
250
+
)
251
+
){
252
+
returnt("note-explain");
260
253
}
261
254
}
262
255
}
@@ -323,7 +316,7 @@ Generate a professionally written and formatted release note in markdown with th
"Ask questions about the current project's codebase, which requires proactive acquisition of additional context information to answer.": "询问关于当前项目代码库的问题,我将主动获取相关的上下文信息来回答。",
16
15
"Generate code with a general template embedded into the prompt.": "使用隐式嵌入到提示词中的通用模板生成代码。",
17
16
"Generate code with a Python-specific template embedded into the prompt.": "使用隐式嵌入到提示词中的 Python 特定模板生成代码。",
18
17
"commit changes with commit message in english.": "选择要提交的代码变更,总结英文提交消息,并提交到代码库。",
19
18
"Generate a commit message for the given git diff.": "为给定的 git diff 生成提交消息。",
20
-
"Generate a release note for the given commit log.": "为给定的提交日志生成发布说明。"
19
+
"Generate a release note for the given commit log.": "为给定的提交日志生成发布说明。",
0 commit comments