Skip to content

Commit c1be513

Browse files
authored
Merge pull request #477 from jonsguez/fix/one-line-commit
fix(prompts.ts): edited contradictory assistant output
2 parents 063aa94 + 668e149 commit c1be513

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/prompts.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const getDescriptionInstruction = () =>
108108

109109
const getOneLineCommitInstruction = () =>
110110
config.OCO_ONE_LINE_COMMIT
111-
? '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.'
111+
? 'Craft a concise, single sentence, 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 one single message.'
112112
: '';
113113

114114
const getScopeInstruction = () =>
@@ -208,7 +208,9 @@ const getConsistencyContent = (translation: ConsistencyPrompt) => {
208208
: translation.commitFeat;
209209

210210
const fix = generateCommitString('fix', fixMessage);
211-
const feat = generateCommitString('feat', featMessage);
211+
const feat = config.OCO_ONE_LINE_COMMIT
212+
? ''
213+
: generateCommitString('feat', featMessage);
212214

213215
const description = config.OCO_DESCRIPTION
214216
? translation.commitDescription

0 commit comments

Comments
 (0)