{"id":13645897,"url":"https://github.com/romanhotsiy/commitgpt","last_synced_at":"2025-04-11T11:49:25.686Z","repository":{"id":64227425,"uuid":"574190840","full_name":"RomanHotsiy/commitgpt","owner":"RomanHotsiy","description":"Automatically generate commit messages using ChatGPT","archived":false,"fork":false,"pushed_at":"2024-07-15T03:53:12.000Z","size":27,"stargazers_count":1591,"open_issues_count":19,"forks_count":94,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-03T15:07:33.726Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RomanHotsiy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-04T17:50:45.000Z","updated_at":"2025-03-30T14:55:14.000Z","dependencies_parsed_at":"2024-01-14T04:45:51.409Z","dependency_job_id":"a0dfc577-5fca-4598-9da4-9067448985d1","html_url":"https://github.com/RomanHotsiy/commitgpt","commit_stats":{"total_commits":29,"total_committers":6,"mean_commits":4.833333333333333,"dds":0.1724137931034483,"last_synced_commit":"dfbe1eb215b4c7a7ff2b10451a56ca10b5266748"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanHotsiy%2Fcommitgpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanHotsiy%2Fcommitgpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanHotsiy%2Fcommitgpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanHotsiy%2Fcommitgpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RomanHotsiy","download_url":"https://codeload.github.com/RomanHotsiy/commitgpt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248389180,"owners_count":21095536,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T01:02:44.502Z","updated_at":"2025-04-11T11:49:25.664Z","avatar_url":"https://github.com/RomanHotsiy.png","language":"TypeScript","readme":"# commitgpt\n\nAutomatically generate commit messages using ChatGPT.\n\n![commitgpt](https://user-images.githubusercontent.com/3975738/205517867-1e7533ae-a8e7-4c0d-afb6-d259635f3f9d.gif)\n\n## How to use?\n\n```bash\nnpx commitgpt\n```\n\n### Get OpenAI api key\nhttps://platform.openai.com/account/api-keys\n\n### Configuration (Optional)\nyou can create `.commitgpt.json` and/or `.commitgpt-template` config files in your project root. \n\n#### `.commitgpt.json` file\ndefault: \n```json\n{\n  \"model\": \"text-davinci-003\",\n  \"temperature\": 0.5,\n  \"maxTokens\": 2048,\n}\n```\nthis file can be used to change the openai model and other parameters.\n\n\n### `.commitgpt-template` file\ndefault:\n```\nsuggest 10 commit messages based on the following diff:\n{{diff}}\ncommit messages should:\n - follow conventional commits\n - message format should be: \u003ctype\u003e[scope]: \u003cdescription\u003e\n\nexamples:\n - fix(authentication): add password regex pattern\n - feat(storage): add new test cases\n```\n\nthis file can be used to change the template used to generate the prompt request. you can modify the template to fit your needs.\n\n## How it works\n\n- Runs `git diff --cached`\n- Sends the diff to ChatGPT and asks it to suggest commit messages\n- Shows suggestions to the user\n\n## Credits\n\nSome code and approaches were inspired by the awesome projects below:\n\n- https://github.com/acheong08/ChatGPT\n- https://github.com/transitive-bullshit/chatgpt-api\n- https://github.com/wong2/chat-gpt-google-extension\n\n----\n\nDo you need API docs? Check out [Redocly](https://redocly.com).\n","funding_links":[],"categories":["Others"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromanhotsiy%2Fcommitgpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromanhotsiy%2Fcommitgpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromanhotsiy%2Fcommitgpt/lists"}