Skip to content

Commit 2432ef9

Browse files
committed
Merge remote-tracking branch 'origin/master' into dev
2 parents 2d5882c + 10b031a commit 2432ef9

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

out/cli.cjs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28111,7 +28111,7 @@ function G3(t2, e3) {
2811128111
// package.json
2811228112
var package_default = {
2811328113
name: "opencommit",
28114-
version: "3.0.16",
28114+
version: "3.0.17",
2811528115
description: "Auto-generate impressive commits in 1 second. Killing lame commits with AI \u{1F92F}\u{1F52B}",
2811628116
keywords: [
2811728117
"git",
@@ -28157,7 +28157,8 @@ var package_default = {
2815728157
"dev:gemini": "OCO_AI_PROVIDER='gemini' ts-node ./src/cli.ts",
2815828158
build: "rimraf out && node esbuild.config.js",
2815928159
"build:push": "npm run build && git add . && git commit -m 'build' && git push",
28160-
deploy: "npm version patch && npm run build:push && git push --tags && npm publish --tag latest",
28160+
deploy: "npm run build:push && git push --tags && npm publish --tag latest",
28161+
"deploy:patch": "npm version patch && npm run deploy",
2816128162
lint: "eslint src --ext ts && tsc --noEmit",
2816228163
format: "prettier --write src",
2816328164
test: "node --no-warnings --experimental-vm-modules $( [ -f ./node_modules/.bin/jest ] && echo ./node_modules/.bin/jest || which jest ) test/unit",
@@ -30687,7 +30688,8 @@ var MODEL_LIST = {
3068730688
"gpt-4o-mini-2024-07-18"
3068830689
],
3068930690
anthropic: [
30690-
"claude-3-haiku-20240307",
30691+
"claude-3-5-sonnet-20240620",
30692+
"claude-3-opus-20240229",
3069130693
"claude-3-sonnet-20240229",
3069230694
"claude-3-opus-20240229"
3069330695
],

out/github-action.cjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49498,7 +49498,8 @@ var MODEL_LIST = {
4949849498
"gpt-4o-mini-2024-07-18"
4949949499
],
4950049500
anthropic: [
49501-
"claude-3-haiku-20240307",
49501+
"claude-3-5-sonnet-20240620",
49502+
"claude-3-opus-20240229",
4950249503
"claude-3-sonnet-20240229",
4950349504
"claude-3-opus-20240229"
4950449505
],

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
"dev:gemini": "OCO_AI_PROVIDER='gemini' ts-node ./src/cli.ts",
4747
"build": "rimraf out && node esbuild.config.js",
4848
"build:push": "npm run build && git add . && git commit -m 'build' && git push",
49-
"deploy": "npm version patch && npm run build:push && git push --tags && npm publish --tag latest",
49+
"deploy": "npm run build:push && git push --tags && npm publish --tag latest",
50+
"deploy:patch": "npm version patch && npm run deploy",
5051
"lint": "eslint src --ext ts && tsc --noEmit",
5152
"format": "prettier --write src",
5253
"test": "node --no-warnings --experimental-vm-modules $( [ -f ./node_modules/.bin/jest ] && echo ./node_modules/.bin/jest || which jest ) test/unit",

src/commands/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ export const getConfig = ({
395395
OCO_GITPUSH: process.env.OCO_GITPUSH === 'false' ? false : true,
396396
OCO_ONE_LINE_COMMIT:
397397
process.env.OCO_ONE_LINE_COMMIT === 'true' ? true : false,
398-
OCO_AZURE_ENDPOINT: process.env.OCO_AZURE_ENDPOINT || '',
398+
OCO_AZURE_ENDPOINT: process.env.OCO_AZURE_ENDPOINT || undefined,
399399
OCO_TEST_MOCK_TYPE: process.env.OCO_TEST_MOCK_TYPE || 'commit-message'
400400
};
401401

src/i18n/zh_CN.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"localLanguage": "简体中文",
3-
"commitFix": "修复(server.ts):将端口变量从小写port改为大写PORT",
4-
"commitFeat": "功能(server.ts):添加对process.env.PORT环境变量的支持",
3+
"commitFix": "fix(server.ts):将端口变量从小写port改为大写PORT",
4+
"commitFeat": "feat(server.ts):添加对process.env.PORT环境变量的支持",
55
"commitDescription": "现在端口变量被命名为PORT,这提高了命名约定的一致性,因为PORT是一个常量。环境变量的支持使应用程序更加灵活,因为它现在可以通过process.env.PORT环境变量在任何可用端口上运行。"
66
}

0 commit comments

Comments
 (0)