Skip to content

Commit

Permalink
chore: update prompt to include commit type
Browse files Browse the repository at this point in the history
  • Loading branch information
tak-bro committed Apr 21, 2024
1 parent 2b756c8 commit fd5647a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
[
"@semantic-release/git",
{
"assets": ["package.json", "CHANGELOG.md"],
"assets": ["CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
}
],
Expand Down
3 changes: 2 additions & 1 deletion src/utils/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export const generatePrompt = (locale: string, maxLength: number, type: CommitTy
'Generate a concise git commit message written in present tense for the following code diff with the given specifications below:',
`Message language: ${locale}`,
`Commit message must be a maximum of ${maxLength} characters.`,
'Please exclude anything unnecessary such as translation or explanation. Your entire response will be passed directly into git commit.',
'Please exclude anything unnecessary such as translation or explanation.',
'Your entire response will be passed directly into git commit.',
commitTypes[type],
specifyCommitFormat(type),
prompt,
Expand Down

0 comments on commit fd5647a

Please sign in to comment.