51613c2aea
feat(api.ts, config.ts): add support for custom model selection in OpenAi class feat(config.ts): add model validation in configValidators
di-sukharev
2023-04-28 15:29:32 +08:00
f04757f8af
Revert "Suggest adding 'Edit' option to the Yes/No confirmation #53 (#70)" (#146)
Sukharev
2023-04-28 14:25:29 +08:00
70f048672c
Suggest adding 'Edit' option to the Yes/No confirmation #53 (#70)
Joshua Hamlet
2023-04-27 23:22:45 -07:00
7e5ed6de0b
refactor(commit.ts): add push command when no remotes are found refactor(githook.ts): simplify switch statement by removing comments and adding inline comments
di-sukharev
2023-04-01 13:24:15 +08:00
6ba0f97163
Add support for the Android platform (#105)
Erick Amorim
2023-04-01 01:18:52 -04:00
0d559d4499
Issue templates (#78)
Matt
2023-03-31 04:12:43 -06:00
686f876cb0
[STYLE] Update commit messages using proper Italian language (#96)
zankyr
2023-03-31 12:11:39 +02:00
acf3e450ae
chore(i18n): update Japanese translation for commit messages (#98)
Manato
2023-03-31 19:11:06 +09:00
8be30a734d
feat(i18n): add support for Polish language (#102)
Karol Lassak
2023-03-31 12:09:17 +02:00
e2f68b7256
refactor(githook.ts): replace comments with line breaks for switch cases in platform switch statement
di-sukharev
2023-03-30 19:53:14 +08:00
db9cff1ae1
refactor(githook.ts): add switch statement to determine path separator based on platform fix(githook.ts): change path separator to use the determined separator variable
di-sukharev
2023-03-30 15:14:43 +08:00
52c396eb16
feat(commit.ts): add support for aborting git push command if user chooses to do so
di-sukharev
2023-03-30 15:00:46 +08:00
f5bcf58f7b
refactor(commit.ts): replace filter callback with Boolean function call docs(commit.ts): remove unnecessary empty line
di-sukharev
2023-03-30 14:57:22 +08:00
4b53a08653
refactor(git.ts): change double quotes to single quotes in git commands and remove unnecessary whitespace
di-sukharev
2023-03-30 14:53:18 +08:00
95d3d8b6c9
chore(commit.ts, es_ES.json, id_ID.json, index.ts): remove unnecessary comments and fix typos in commit messages and translations
di-sukharev
2023-03-30 14:52:01 +08:00
2c79bf22df
Add support for indonesia language (id_ID) (#94)
kakandavorever
2023-03-30 13:47:57 +07:00
bafe7e9ede
refactor(prepare-commit-msg-hook.ts): simplify conditional statements The conditional statements in the prepareCommitMessageHook function have been simplified to improve readability. The first conditional statement now checks if there are no staged files and no changed files, and if so, it will output a message and exit the process. The second conditional statement now checks if there are no staged files but there are changed files, and if so, it will add the changed files to the staging area.
di-sukharev
2023-03-29 11:31:27 +08:00
c7efa6f935
refactor: remove @dqbd/tiktoken dependency chore(tsconfig.json): change target to ESNext The @dqbd/tiktoken dependency was removed from the package.json file. This dependency was not being used in the project and was therefore removed to reduce the size of the project. The target in the tsconfig.json file was changed from ES2020 to ESNext to allow for the use of the latest ECMAScript features.
di-sukharev
2023-03-29 11:26:19 +08:00
1b70de1d20
fix(githook.ts): capitalize OpenCommit in console output chore(githook.ts): remove unused import refactor(tokenCount.ts): simplify token count calculation The console output now correctly capitalizes OpenCommit for consistency with the project name. The unused import of fileURLToPath is removed. The tokenCount function is refactored to simplify the calculation of the token count. The Tiktoken library is no longer used, and the token count is now calculated based on the length of the content divided by an average token length of 2.7 characters.
di-sukharev
2023-03-29 11:26:05 +08:00
853662acc4
refactor(tokenCount.ts): format code with consistent indentation and quotes The code has been reformatted to use consistent indentation and quotes. This improves the readability and maintainability of the code. No functionality has been changed.
di-sukharev
2023-03-29 11:25:48 +08:00
e128cdece1
refactor(generateCommitMessageFromGitDiff.ts): rename mergeStrings to mergeDiffs and add maxDiffLength parameter feat(generateCommitMessageFromGitDiff.ts): split file diffs into changes in files if they exceed the maximum token count The mergeStrings function was renamed to mergeDiffs to better reflect its purpose. The function now takes an additional parameter, maxDiffLength, which is used to split file diffs into changes in files if they exceed the maximum token count. This change improves the efficiency of the function and reduces the number of tokens used.
di-sukharev
2023-03-29 10:44:45 +08:00
4cc73208cd
chore(.gitignore): add test.ts to the list of ignored files fix(prepare-commit-msg-hook.ts): add missing await keyword to getStagedFiles() function call feat(prepare-commit-msg-hook.ts): add spinner to indicate commit message generation progress feat(utils/mergeDiffs.ts): add mergeDiffs function to merge array of strings into an array of strings with a maximum length The test.ts file is now ignored by git. The missing await keyword has been added to the getStagedFiles() function call. A spinner has been added to indicate the progress of commit message generation. The mergeDiffs function has been added to merge an array of strings into an array of strings with a maximum length.
di-sukharev
2023-03-29 10:43:27 +08:00
ea864d18f4
refactor(generateCommitMessageFromGitDiff.ts): update INIT_MESSAGES_PROMPT to improve readability and remove unnecessary line breaks
di-sukharev
2023-03-29 09:35:35 +08:00
5d131e66fa
Merge branch 'master' into dev
di-sukharev
2023-03-29 09:34:38 +08:00
bf24be92a1
chore(generateCommitMessageFromGitDiff.ts): update INIT_MESSAGES_PROMPT to clarify commit message conventions and instructions
di-sukharev
2023-03-29 09:32:15 +08:00
3103ae18b8
Count file diff by token, not by length of string (#63)
Raymond
2023-03-28 18:43:02 +08:00
7c9feba3ba
Added Swedish Translation (#68)
R4V3N
2023-03-28 12:38:49 +02:00
a2d03e054c🔀 chore(CommandsEnum.ts): reorder COMMANDS enum values 🐛 fix(config.ts): add missing new lines 🐛 fix(githook.ts): capitalize OpenCommit and fix grammar The COMMANDS enum values were reordered to improve readability and consistency. In config.ts, missing new lines were added to improve code readability. In githook.ts, OpenCommit was capitalized and grammar was fixed to improve clarity.
di-sukharev
2023-03-28 11:31:42 +08:00
1c113c2901
style(commit.ts): add question mark to confirm message feat(commit.ts): add support for pushing to selected remote instead of default remote refactor(commit.ts): extract push command to a function and reuse it for both default and selected remote
di-sukharev
2023-03-28 11:22:57 +08:00
18dcb8e8c2
docs(CONTRIBUTING.md): fix typo in Contacts section chore(package.json): change license from ISC to MIT
di-sukharev
2023-03-28 11:20:09 +08:00
8b17b5e906
fix(commit.ts): add --verbose flag to git push command (#43)
jessicakuijer
2023-03-28 05:18:34 +02:00
284604f6a4
feat(i18n): add support for Vietnamese (Vietnam) language (vi_VN) (#51)
Dang Quang Linh
2023-03-28 10:16:17 +07:00
bdce94f2ac
[FEAT](i18n): Add support for Spanish language (es_ES) (#58)
Esmerlin Joel Mieses
2023-03-28 00:15:17 -03:00
a3fade4d42
refactor(git.ts): use git rev-parse to get the root directory of the repository (#46)
Moret84
2023-03-24 03:11:50 +01:00
83906fc704
docs(CONTRIBUTING.md): update branch name in step 6 from master to dev
di-sukharev
2023-03-21 18:23:38 +08:00
38ac20612b
feat(cli.ts): check if the latest version of opencommit is being used on startup feat(api.ts): add function to get the latest version of opencommit from unpkg.com
di-sukharev
2023-03-21 15:36:05 +08:00