{"id":13645404,"url":"https://github.com/markuswt/gpt-commit","last_synced_at":"2025-04-21T14:30:47.084Z","repository":{"id":217094948,"uuid":"595428600","full_name":"markuswt/gpt-commit","owner":"markuswt","description":"Generate commit messages using ChatGPT","archived":false,"fork":false,"pushed_at":"2023-05-03T08:35:43.000Z","size":17,"stargazers_count":271,"open_issues_count":2,"forks_count":17,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-08-02T01:25:22.594Z","etag":null,"topics":["chatgpt","commit","git","gpt-3","openai"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markuswt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-01-31T03:41:44.000Z","updated_at":"2024-07-30T17:30:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"5125ff43-be95-4b8a-a88d-15fa605d305e","html_url":"https://github.com/markuswt/gpt-commit","commit_stats":null,"previous_names":["markuswt/gpt-commit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markuswt%2Fgpt-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markuswt%2Fgpt-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markuswt%2Fgpt-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markuswt%2Fgpt-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markuswt","download_url":"https://codeload.github.com/markuswt/gpt-commit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223868112,"owners_count":17217032,"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":["chatgpt","commit","git","gpt-3","openai"],"created_at":"2024-08-02T01:02:34.580Z","updated_at":"2024-11-09T18:31:07.947Z","avatar_url":"https://github.com/markuswt.png","language":"Python","funding_links":[],"categories":["Openai","Python"],"sub_categories":[],"readme":"# `gpt-commit`\n\nGenerate commit messages using GPT-3. To use `gpt-commit`, simply invoke it whenever you'd use `git commit`. Git will prompt you to edit the generated commit message.\n\n```\ngit add .\n./gpt-commit.py\n```\n\n## Getting Started\n\nInstall `openai` and clone `gpt-commit`.\n\n```\npip3 install openai\ngit clone git@github.com:markuswt/gpt-commit.git\n```\n\nSet the environment variable `OPENAI_API_KEY` to your [OpenAI API key](https://platform.openai.com/account/api-keys), e.g. by adding the following line to your `.bashrc`.\n\n```\nexport OPENAI_API_KEY=\u003cYOUR API KEY\u003e\n```\n\nAlternatively, you can set the `openai.api_key` variable in `gpt-commit.py`. You can also set `openai.organization` this way (optional).\n\n### Modify `git commit` (optional)\n\nIf you want `git commit` to automatically invoke `gpt-commit`, copy `gpt-commit.py` and `prepare-commit-msg` to the `.git/hooks` directory in any project where you want to modify `git commit`.\n\n## Privacy Disclaimer\n\n`gpt-commit` uses the [OpenAI API](https://platform.openai.com/docs) to generate commit messages. Both file names and contents from files that contain staged changes will be shared with OpenAI when using `gpt-commit`. OpenAI will process this data according to their [terms of use](https://openai.com/policies/terms-of-use) and [API data usage policies](https://openai.com/policies/api-data-usage-policies). On March 1st 2023 OpenAI pledged that by default, they would not use data submitted by customers via their API to train or improve their models, and that this data will be retained for a maximum of 30 days, after which it will be deleted. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkuswt%2Fgpt-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkuswt%2Fgpt-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkuswt%2Fgpt-commit/lists"}