Commit Graph

  • 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 di-sukharev 2023-03-21 15:06:47 +08:00
  • 7fb46de105 1.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
  • d793bf1340 feat: Add support for extra args to be passed to the git commit command (#17) Nader Zouaoui 2023-03-19 08:58:21 +01:00
  • 0092e92061 1.1.16 di-sukharev 2023-03-17 17:51:42 +08:00
  • 0f33b74942 1.1.15 di-sukharev 2023-03-17 17:51:36 +08:00
  • 8f0a32275e 1.1.14 di-sukharev 2023-03-17 17:50:39 +08:00
  • b3509e34d0 1.1.13 di-sukharev 2023-03-17 14:20:51 +08:00
  • 5449d5cd61 1.1.12 di-sukharev 2023-03-17 14:20:39 +08:00
  • b0d27e62ba Merge remote-tracking branch 'origin/master' into dev di-sukharev 2023-03-17 14:19:23 +08:00
  • 5ae52cd8bb 🚀 i18n: add internationalization support (#31) openefit 2023-03-17 13:57:26 +08:00
  • 57baedd0b0 Feature: add staged files multiple selection (#6) (#27) Sukharev 2023-03-17 13:53:22 +08:00
  • d4fc651fec refactor(git.ts): remove unused code and simplify getDiff function feat(git.ts): add message for excluded lock files in getDiff function di-sukharev 2023-03-16 23:41:08 +08:00
  • 04d40b5379 refactor(git.ts): rename someFilesExcludedMessage to showSomeFilesExcludedMessage feat(git.ts): replace text prompt with outro prompt in showSomeFilesExcludedMessage function feat(git.ts): add support for showing excluded files message in getStagedFiles, getChangedFiles, gitAdd and getDiff functions di-sukharev 2023-03-16 23:28:47 +08:00
  • ec2e4c628c fix(commit.ts): fix typo in outro message feat(commit.ts): add support for staging all files and generating commit message when no files are staged feat(commit.ts): add support for committing changes when no files are staged and some files are changed but not staged di-sukharev 2023-03-16 23:15:56 +08:00
  • c787329710 chore(README.md): fix capitalization of OpenCommit in setup and usage sections docs(README.md): fix typo in Git hook section di-sukharev 2023-03-16 23:14:29 +08:00
  • 0d1f72bdec Feature: add staged files multiple selection (#6) Vladyslav Kapkan 2023-03-16 15:41:21 +01:00
  • 5d0c69e849 1.1.11 di-sukharev 2023-03-16 11:48:42 +08:00
  • 9754442efa chore(README.md): update Twitter handle in header di-sukharev 2023-03-16 11:48:31 +08:00
  • a619cd1f78 docs(README.md): update payment information to include GPT-4 cost comparison di-sukharev 2023-03-15 17:35:25 +08:00
  • 1fc4a6b6c0 1.1.10 di-sukharev 2023-03-15 17:33:55 +08:00
  • 798bddba81 docs(README.md): remove outdated information about minimum supported version of Node.js di-sukharev 2023-03-15 17:33:43 +08:00
  • 42ed2a31f4 fix(commit.ts): remove '-u' and 'origin' arguments from git push command to push to the current branch di-sukharev 2023-03-15 14:51:26 +08:00
  • 571e1e9d8f chore(TODO.md): mark batch small files in one request as completed refactor(TODO.md): rephrase optimize prompt TODO to suggest exploring cleaner alternatives to prompt di-sukharev 2023-03-15 14:49:38 +08:00
  • bd8de7a8ea feat(commit.ts): add '-u origin HEAD' flag to 'git push' command to set upstream branch and push current branch to it di-sukharev 2023-03-15 14:46:15 +08:00
  • 913bcd379f 1.1.9 di-sukharev 2023-03-14 18:51:06 +08:00
  • 25468f67ad 1.1.8 di-sukharev 2023-03-14 18:50:57 +08:00
  • 6766f62848 Replace type assertion with built-in error detection (#10) Benny Neugebauer 2023-03-14 11:50:25 +01:00
  • 71c36db265 1.1.7 di-sukharev 2023-03-13 16:44:36 +08:00
  • ed66e403e7 1.1.6 di-sukharev 2023-03-13 16:44:19 +08:00
  • b89e50ebbf * fix(generateCommitMessageFromGitDiff.ts): fix formatting of commit message prompt * feat(generateCommitMessageFromGitDiff.ts): add description to commit message prompt di-sukharev 2023-03-13 16:43:59 +08:00
  • 38ebe49daa 1.1.5 di-sukharev 2023-03-11 18:04:04 +08:00
  • 6ccded1f23 1.1.4 di-sukharev 2023-03-11 13:24:58 +08:00
  • 31357132e4 * chore(api.ts): add error handling for openAI api error * chore(generateCommitMessageFromGitDiff.ts): remove console.log statement di-sukharev 2023-03-11 13:24:02 +08:00
  • b35a393152 * docs(README.md): add reminder to add payment details to OpenAI API key * docs(api.ts): update error message to remind user to add payment details to OpenAI API key * refactor(cli.ts): remove unused import * refactor(config.ts): update error message to use outro instead of throwing an error and exit the process di-sukharev 2023-03-11 13:23:46 +08:00
  • 8fe382a072 1.1.3 di-sukharev 2023-03-11 01:02:37 +08:00
  • 4b703c634a * chore(TODO.md): update TODO list, remove completed task * refactor(cli.ts): remove unnecessary async/await keywords, remove version check and "new version available" message di-sukharev 2023-03-11 01:01:26 +08:00
  • 6821e937cf 1.1.2 di-sukharev 2023-03-11 00:58:18 +08:00
  • 69f3c48b2c * chore(TODO.md): mark "show new version available message" as completed * chore(package.json): add --tag latest flag to npm publish command in deploy script * refactor(cli.ts): add async/await to prepareCommitMessageHook and commit functions, and check for new version of opencommit after commit is made di-sukharev 2023-03-11 00:57:48 +08:00
  • f49f1a86df * chore(package.json): update version from 1.0.17 to 1.1.1 di-sukharev 2023-03-11 00:55:36 +08:00
  • 98945df561 1.0.17 di-sukharev 2023-03-11 00:53:29 +08:00
  • e8e190ff3d 1.0.16 di-sukharev 2023-03-11 00:49:50 +08:00
  • 9c3f28b7c6 * chore(TODO.md): move TODO.md to .github/TODO.md * chore(TODO.md): set prepare-commit-msg hook * chore(cli.ts): remove async/await from commit and prepareCommitMessageHook calls * feat(cli.ts): add check for new version available after commit di-sukharev 2023-03-11 00:49:22 +08:00
  • e146d4d60d * fix(cli.ts): add curly braces to if statement in cli function to improve readability di-sukharev 2023-03-11 00:32:37 +08:00
  • 2ae35749a5 1.0.15 di-sukharev 2023-03-11 00:28:58 +08:00
  • 8836c57fa4 * chore(commit.ts): add TODO comment to show proper error messages di-sukharev 2023-03-11 00:24:52 +08:00
  • 4b523e5782 1.0.14 di-sukharev 2023-03-11 00:23:55 +08:00
  • 33491486bb * feat(CommandsEnum.ts): add COMMANDS enum * refactor(api.ts): use CONFIG_MODES enum from config.ts * refactor(config.ts): use COMMANDS and CONFIG_MODES enums, extract validateConfig function * feat(config.ts): add CONFIG_MODES enum and refactor configCommand function to use it di-sukharev 2023-03-11 00:23:30 +08:00
  • e76db8276b 1.0.13 di-sukharev 2023-03-11 00:20:09 +08:00
  • c2ae98170c * refactor(api.ts): move apiKey initialization to the top of the file * feat(api.ts): add check for process arguments to avoid intro message if 'config set' command is used di-sukharev 2023-03-11 00:19:29 +08:00
  • 91987030f0 1.0.12 di-sukharev 2023-03-11 00:15:34 +08:00
  • 2a55b08b51 * refactor(api.ts): remove redundant code block and process.exit(1) call di-sukharev 2023-03-11 00:15:17 +08:00
  • ed4d6e0109 1.0.11 di-sukharev 2023-03-10 22:49:43 +08:00
  • 6712e798c5 * feat(cli.ts): add check for new opencommit version after commit is made * chore(cli.ts): import execa and outro from their respective packages di-sukharev 2023-03-10 22:49:27 +08:00
  • 1347962a93 1.0.10 di-sukharev 2023-03-10 22:42:33 +08:00
  • 3ca9b9752f * fix(api.ts): add process.exit(1) to terminate the process if apiKey is not provided di-sukharev 2023-03-10 22:41:53 +08:00
  • 50e2f67a9b 1.0.9 di-sukharev 2023-03-10 17:56:21 +08:00
  • c1a4c3daf2 * chore: update package description and keywords * chore: update README with new package description and title di-sukharev 2023-03-10 17:55:51 +08:00
  • e4de6d8186 * feat(README.md): add OpenCommit example image to README * chore(README.md): update OPENAI_API_KEY config key to use 'your_api_key' instead of 'your token' * chore(README.md): update description of where the api key is stored di-sukharev 2023-03-10 15:59:57 +08:00
  • 5abe5d715d * refactor(commit.ts): remove unnecessary blank lines * feat(commit.ts): add spinner to show progress of git push command * feat(commit.ts): show success message after successful git push command execution di-sukharev 2023-03-10 15:24:49 +08:00
  • 32c34abd22 1.0.8 di-sukharev 2023-03-09 21:32:24 +08:00
  • 1050cad95d * refactor(commit.ts): extract stdout from git push command into a variable di-sukharev 2023-03-09 21:32:07 +08:00
  • 7bbc97980e * refactor(commit.ts): remove unused stdout variable and simplify pushSpinner.stop() call di-sukharev 2023-03-09 21:31:31 +08:00
  • 2a9a3d5818 * chore(README.md): add emoji to the project description di-sukharev 2023-03-09 21:30:44 +08:00
  • 22935f38ba 1.0.7 di-sukharev 2023-03-09 21:29:52 +08:00
  • 4ae6361ad8 * chore(package.json): update description with emojis. di-sukharev 2023-03-09 21:29:28 +08:00
  • 5a0a384cbe 1.0.6 di-sukharev 2023-03-09 21:25:49 +08:00
  • a8839353f7 * chore(commit.ts): add spinner to indicate git push process * refactor(commit.ts): change success message to include spinner in git push process di-sukharev 2023-03-09 21:25:38 +08:00
  • 88006b8693 * fix(commit.ts): add check for cancelation of git push confirmation prompt di-sukharev 2023-03-09 21:23:58 +08:00
  • 5d9d1c972a 1.0.5 di-sukharev 2023-03-09 21:22:46 +08:00
  • 3892bd0e69 * feat(commit.ts): add option to push commits after successful commit di-sukharev 2023-03-09 21:22:35 +08:00
  • 2b6cc5c360 * chore(README.md): update example section to clarify that all commits in the repo are done with OpenCommit di-sukharev 2023-03-09 21:20:17 +08:00
  • c4c2600cf6 1.0.4 di-sukharev 2023-03-09 15:29:34 +08:00
  • c361aaa914 * refactor(generateCommitMessageFromGitDiff.ts): merge multiple line-diffs and multiple files-diffs to save tokens * refactor(generateCommitMessageFromGitDiff.ts): split file-diff into line-diffs only if file-diff is bigger than gpt context di-sukharev 2023-03-09 15:28:18 +08:00
  • f3d673185e deleted log txt file di-sukharev 2023-03-09 15:04:51 +08:00
  • 5615bdce86 * refactor(commit.ts): add stdout to commit function output * fix(commit.ts): fix commit confirmation message to show correct status di-sukharev 2023-03-09 14:02:04 +08:00
  • 68b327bee7 * refactor(prepare-commit-msg-hook.ts): remove outro function call and its message from try block di-sukharev 2023-03-09 14:00:50 +08:00
  • b747d70e69 1.0.3 di-sukharev 2023-03-09 13:59:55 +08:00
  • caa64fbcf9 * refactor(prepare-commit-msg-hook.ts): change appendFile to writeFile to write commit message to file * chore(prepare-commit-msg-hook.ts): add newline character before appending file content to commit message di-sukharev 2023-03-09 13:58:27 +08:00
  • 1a49c08409 * chore(commit.ts): change stagedFilesSpinner message when no files are staged di-sukharev 2023-03-09 13:56:03 +08:00
  • 3399d65a0c 1.0.2 di-sukharev 2023-03-07 23:02:22 +08:00
  • d561170519 * refactor(api.ts): remove console.log statement * fix(generateCommitMessageFromGitDiff.ts): increase MAX_REQ_TOKENS to 3900 to avoid exceeding OpenAI's limit di-sukharev 2023-03-07 22:37:13 +08:00
  • bf29c260ca * 🚀 feat(generateCommitMessageFromGitDiff.ts): add mergeStrings utility function * 🐛 fix(generateCommitMessageFromGitDiff.ts): remove unnecessary separator variable di-sukharev 2023-03-07 16:19:00 +08:00
  • 9e2a3d8988 getMessagesPromisesByLines di-sukharev 2023-03-07 16:16:12 +08:00
  • 1ea5fbc430 * 🐛 fix(api.ts): return message content instead of whole response object * 🚀 chore(generateCommitMessageFromGitDiff.ts): filter out null promises and update TODO comment * 🚀 chore(tsconfig.json): update target to ES2020 and remove ES5 from lib di-sukharev 2023-03-07 15:51:10 +08:00
  • 55e9adf73d * 🐛 fix(cli.ts): add assert statement to packageJSON import The assert statement was added to ensure that the imported packageJSON is of type JSON. This prevents any potential runtime errors that may occur if the imported file is not of the expected type. di-sukharev 2023-03-07 15:21:16 +08:00
  • 60325f53b9 * 🚧 chore(prepare-commit-msg-hook.ts): remove console.log and add TODO comment The console.log statement is removed as it is not needed. A TODO comment is added to remind the developer to change the code to read file and write file with commitMessage. di-sukharev 2023-03-06 23:56:38 +08:00
  • 3966c4c53a * 🐛 fix(prepare-commit-msg-hook.ts): remove console.log statement The console.log statement was left in the code and is not needed. This commit removes it. di-sukharev 2023-03-06 23:52:34 +08:00
  • 2527c80f2f * 📝 docs(README.md): replace opencommit with oc in commands The commands in the README.md file have been updated to use the new 'oc' command instead of the old 'opencommit' command. This improves consistency with the naming conventions and makes it easier to use the tool. di-sukharev 2023-03-06 23:41:47 +08:00
  • e89fc96732 * 🎨 style(githook.ts): remove unused import The import of fileURLToPath from the url module is not used in the file, so it has been removed to improve code readability and maintainability. di-sukharev 2023-03-06 23:35:39 +08:00
  • b5d1057fd6 * 📝 docs(README.md): update link to commits The link to the commits was updated to point to a specific commit (eae7618d57) instead of the general commits page. This provides a more direct and specific reference to the commits. di-sukharev 2023-03-06 23:22:00 +08:00
  • 5f310970cc * 📝 docs(README.md): remove emoji from header Removed the cowboy emoji from the header of the README.md file to improve readability. di-sukharev 2023-03-06 23:19:17 +08:00