Commit Graph

  • 8f60345008 docs: update README.md di-sukharev 2023-04-05 13:13:45 +08:00
  • c148048452 Create dependency-review.yml Sukharev 2023-04-05 13:05:36 +08:00
  • add8855bf9 Create codeql.yml Sukharev 2023-04-05 13:05:09 +08:00
  • 0cc5be10f2 1.1.49 v1.1.49 di-sukharev 2023-04-05 13:01:36 +08:00
  • 30d2d9d284 1.1.48 v1.1.48 di-sukharev 2023-04-05 13:01:28 +08:00
  • d69fa6c2d7 Merge branch 'master' of github.com:di-sukharev/opencommit di-sukharev 2023-04-05 13:01:17 +08:00
  • bf3b8c6ded chore(.yml): remove Close Stale Issues action from workflow. di-sukharev 2023-04-05 13:00:57 +08:00
  • f851ea1fff Create stale.yml Sukharev 2023-04-05 13:00:29 +08:00
  • d6cbaf5f5f refactor(tokenCount.ts): remove commented out code and unused import statement di-sukharev 2023-04-05 12:55:45 +08:00
  • 220d0b292f 1.1.47 v1.1.47 di-sukharev 2023-04-05 12:55:22 +08:00
  • e5d3c8d4ff 1.1.46 v1.1.46 di-sukharev 2023-04-05 12:55:16 +08:00
  • cbc8d61f99 feat(.yml): add GitHub Action to close stale issues using actions/stale@v4.1.1 di-sukharev 2023-04-05 12:54:38 +08:00
  • 7fd357e78e 1.1.45 v1.1.45 di-sukharev 2023-04-05 12:45:01 +08:00
  • 5837d1fa2e 1.1.44 v1.1.44 di-sukharev 2023-04-05 12:44:54 +08:00
  • 36f282d8a5 Merge branch 'dev' di-sukharev 2023-04-05 12:44:30 +08:00
  • 9f65c450e3 build(esbuild.config.js): add esbuild configuration file and move build command to it (#82) Raymond 2023-04-05 12:42:07 +08:00
  • d5f53fec5a 1.1.43 v1.1.43 di-sukharev 2023-04-05 12:36:17 +08:00
  • b6651a4c47 1.1.42 v1.1.42 di-sukharev 2023-04-05 12:36:13 +08:00
  • 2b10dc089c refactor(githook.ts): remove unused platform variable and switch statement fix(githook.ts): change DEFAULT_SYMLINK_URL to use relative path instead of absolute path di-sukharev 2023-04-05 12:35:23 +08:00
  • a5e60ac23c 1.1.41 v1.1.41 di-sukharev 2023-04-05 12:32:13 +08:00
  • e519752938 1.1.40 v1.1.40 di-sukharev 2023-04-05 12:32:09 +08:00
  • 1ba5e20228 chore(TODO.md): add task to set max commit message length to improve commit message quality di-sukharev 2023-04-05 12:31:42 +08:00
  • 4103bafc4f chore(TODO.md): add task to try setting max commit message length di-sukharev 2023-04-05 12:30:01 +08:00
  • 5a9b460033 feat(api.ts): add support for OPENAI_BASE_PATH configuration variable (#80) kimlym 2023-04-05 12:26:02 +08:00
  • 3364289034 feat(i18n): add support for Thai (ไทย) language (th) (#117) l2D 2023-04-05 11:24:44 +07:00
  • 5185f3365c Feature work with husky (#47) (#79) Matt 2023-03-31 23:29:22 -06:00
  • 17ed061f73 Merge branch 'dev' of github.com:di-sukharev/opencommit into dev di-sukharev 2023-04-01 13:25:57 +08:00
  • 06fa6daa72 1.1.39 v1.1.39 di-sukharev 2023-04-01 13:24:57 +08:00
  • af457473be 1.1.38 v1.1.38 di-sukharev 2023-04-01 13:24:33 +08:00
  • 33b418e399 1.1.37 v1.1.37 di-sukharev 2023-04-01 13:24:28 +08: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
  • eacc750952 1.1.36 v1.1.36 di-sukharev 2023-03-30 15:15:03 +08:00
  • 3fe57537ad 1.1.35 v1.1.35 di-sukharev 2023-03-30 15:15:00 +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
  • 1c29b91408 1.1.34 v1.1.34 di-sukharev 2023-03-30 15:01:20 +08:00
  • 425eeef732 1.1.33 v1.1.33 di-sukharev 2023-03-30 15:01:15 +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
  • e8c1a75a46 Feat(i18n): Add Dutch translations (#85) Jeroen Smink 2023-03-30 08:43:12 +02:00
  • 5d064ac873 fix(githook.ts): fix SYMLINK_URL for Windows (#88) Maik Stegemann 2023-03-30 08:42:02 +02:00
  • 8d01829a9b 🔥 refactor(githook.ts): remove unused import (#93) Alex Cáceres Gómez 2023-03-30 08:41:08 +02:00
  • e9c66ae168 1.1.32 v1.1.32 di-sukharev 2023-03-29 18:24:18 +08:00
  • 18b0004b81 1.1.31 v1.1.31 di-sukharev 2023-03-29 18:24:14 +08:00
  • 4d4157087e Merge branch 'dev' of github.com:di-sukharev/opencommit into dev di-sukharev 2023-03-29 18:23:46 +08:00
  • 3edb6e2fc1 chore(generateCommitMessageFromGitDiff.ts): fix typo in GitMoji convention di-sukharev 2023-03-29 18:23:25 +08:00
  • d428102a67 [FEAT](i18n): Add support for Russian language (ru) (#75) Andrew 2023-03-29 14:11:18 +08:00
  • 9404f5d410 1.1.30 v1.1.30 di-sukharev 2023-03-29 11:31:38 +08:00
  • 8c1eb4a5ad 1.1.29 v1.1.29 di-sukharev 2023-03-29 11:31:35 +08: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
  • a4716b35a4 1.1.28 v1.1.28 di-sukharev 2023-03-29 11:26:59 +08:00
  • c1e9062ce0 1.1.27 v1.1.27 di-sukharev 2023-03-29 11:26:51 +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
  • 0e1ad33179 1.1.26 v1.1.26 di-sukharev 2023-03-29 10:45:35 +08:00
  • e7eaa5425e 1.1.25 v1.1.25 di-sukharev 2023-03-29 10:45:30 +08:00
  • 4b96670374 Merge branch 'dev' di-sukharev 2023-03-29 10:45:17 +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
  • 58369e4df9 1.1.24 v1.1.24 di-sukharev 2023-03-28 11:32:17 +08:00
  • 3d50a67ece 1.1.23 v1.1.23 di-sukharev 2023-03-28 11:32:13 +08: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
  • e7f7bfc2bd 1.1.22 v1.1.22 di-sukharev 2023-03-21 15:52:54 +08:00
  • 3885ae5893 1.1.21 v1.1.21 di-sukharev 2023-03-21 15:52:50 +08:00
  • b8e05a5852 refactor(cli.ts): comment out checkIsLatestVersion function call chore(checkIsLatestVersion.ts): add import for chalk library di-sukharev 2023-03-21 15:52:32 +08:00
  • 677b7ecad9 1.1.20 v1.1.20 di-sukharev 2023-03-21 15:36:20 +08:00
  • 6ab06f9db3 1.1.19 v1.1.19 di-sukharev 2023-03-21 15:36:16 +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
  • 54b8ba7419 chore(package.json): update version to 1.1.18 di-sukharev 2023-03-21 15:35:04 +08:00
  • ff81d7e1ca feat(commit.ts) : Suggestion for the user to help how to choose where to push code on remotes (#20) jessicakuijer 2023-03-21 08:14:13 +01:00
  • a6ccdb5f77 feature request: telling user when new version is available (#35) Nader Zouaoui 2023-03-21 08:11:48 +01:00
  • fef8027959 feat(i18n): add support for Portuguese (Brazil) language (pt_br) (#34) Adriel Bento 2023-03-21 04:09:48 -03:00
  • 0f48cc616e fix(git.ts): add relative flag to git diff command (#37) Moret84 2023-03-21 08:08:46 +01:00
  • b54ff02930 1.1.18 v1.1.18 di-sukharev 2023-03-21 15:06:47 +08:00
  • 7fb46de105 1.1.17 v1.1.17 di-sukharev 2023-03-21 15:06:43 +08:00
  • 2f6e98dc30 style(commit.ts): format code with prettier refactor(commit.ts): add types to commit function parameters fix(git.ts): handle empty string returned from getStagedFiles function di-sukharev 2023-03-21 15:06:30 +08:00
  • 2aa6582c52 Merge remote-tracking branch 'origin/dev' di-sukharev 2023-03-21 14:51:44 +08:00
  • 2acf833cd0 fix(generateCommitMessageFromGitDiff.ts): remove unnecessary character at the end of the line (#36) openefit 2023-03-19 16:04:06 +08:00
  • 3f7025d50a feat: add support for .opencommitignore file (#22) Stuart van Beek 2023-03-19 09:01:57 +01:00