Skip to content

Commit cf8dc11

Browse files
Add console log for response content and update package details
- Added a console log statement to output the content of the response message in index.js for debugging purposes. - Updated the version in package.json from 0.8.2
1 parent 04245dc commit cf8dc11

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const gptCommit = async () => {
101101
}
102102

103103
const response = await openai.chat.completions.create(parameters)
104-
104+
console.log(response.choices[0].message.content)
105105
const message = response.choices[0].message.content
106106
.replace(/[^\w\s.:@<>/-]/gi, '')
107107
.trim()

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@laststance/git-gpt-commit",
3-
"version": "0.8.2",
3+
"version": "0.8.5",
44
"description": "An AI-powered Git extension that generates commit messages using OpenAI's GPT-3, streamlining the commit process and improving developer productivity.",
55
"main": "index.js",
66
"type": "module",
@@ -10,7 +10,7 @@
1010
},
1111
"repository": {
1212
"type": "git",
13-
"url": "[email protected]:laststance/git-commit-gpt.git"
13+
"url": "[email protected]:laststance/git-gpt-commit.git"
1414
},
1515
"files": [
1616
"README.md",

utils/sanitizeCommitMessage.js

Whitespace-only changes.

0 commit comments

Comments
 (0)