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
var getDescriptionInstruction = () => config4.OCO_DESCRIPTION ? `Add a short description of WHY the changes are done after the commit message. Don't start it with "This commit", just describe the changes.` : "Don't add any descriptions to the commit, only commit message.";
44933
44933
var getOneLineCommitInstruction = () => config4.OCO_ONE_LINE_COMMIT ? "Craft a concise commit message that encapsulates all changes made, with an emphasis on the primary updates. If the modifications share a common theme or scope, mention it succinctly; otherwise, leave the scope out to maintain focus. The goal is to provide a clear and unified overview of the changes in a one single message, without diverging into a list of commit per file change." : "";
44934
-
var INIT_MAIN_PROMPT2 = (language, fullGitMojiSpec) => ({
44934
+
var userInputCodeContext = (context) => {
44935
+
if (context !== "" && context !== " ") {
44936
+
return `Additional context provided by the user: <context>${context}</context>
44937
+
Consider this context when generating the commit message, incorporating relevant information when appropriate.`;
44938
+
}
44939
+
return "";
44940
+
};
44941
+
var INIT_MAIN_PROMPT2 = (language, fullGitMojiSpec, context) => ({
var getDescriptionInstruction = () => config4.OCO_DESCRIPTION ? `Add a short description of WHY the changes are done after the commit message. Don't start it with "This commit", just describe the changes.` : "Don't add any descriptions to the commit, only commit message.";
63734
63734
var getOneLineCommitInstruction = () => config4.OCO_ONE_LINE_COMMIT ? "Craft a concise commit message that encapsulates all changes made, with an emphasis on the primary updates. If the modifications share a common theme or scope, mention it succinctly; otherwise, leave the scope out to maintain focus. The goal is to provide a clear and unified overview of the changes in a one single message, without diverging into a list of commit per file change." : "";
63735
-
var INIT_MAIN_PROMPT2 = (language, fullGitMojiSpec) => ({
63735
+
var userInputCodeContext = (context2) => {
63736
+
if (context2 !== "" && context2 !== " ") {
63737
+
return `Additional context provided by the user: <context>${context2}</context>
63738
+
Consider this context when generating the commit message, incorporating relevant information when appropriate.`;
63739
+
}
63740
+
return "";
63741
+
};
63742
+
var INIT_MAIN_PROMPT2 = (language, fullGitMojiSpec, context2) => ({
0 commit comments