{"id":21134436,"url":"https://github.com/ankitbko/chatgpt-commit-message-hook","last_synced_at":"2025-07-09T02:32:25.220Z","repository":{"id":187875221,"uuid":"609610720","full_name":"ankitbko/chatgpt-commit-message-hook","owner":"ankitbko","description":"Git hook that calls ChatGPT to generate commit message based on staged content","archived":false,"fork":false,"pushed_at":"2023-03-05T07:11:05.000Z","size":11,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-08-12T14:45:59.685Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ankitbko.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}},"created_at":"2023-03-04T17:45:11.000Z","updated_at":"2023-08-12T14:46:01.448Z","dependencies_parsed_at":"2023-08-12T14:46:01.403Z","dependency_job_id":"bd62f4d6-bab8-484f-82bc-e05830afa1e8","html_url":"https://github.com/ankitbko/chatgpt-commit-message-hook","commit_stats":null,"previous_names":["ankitbko/chatgpt-commit-message-hook"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankitbko%2Fchatgpt-commit-message-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankitbko%2Fchatgpt-commit-message-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankitbko%2Fchatgpt-commit-message-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankitbko%2Fchatgpt-commit-message-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ankitbko","download_url":"https://codeload.github.com/ankitbko/chatgpt-commit-message-hook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225480088,"owners_count":17480964,"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-11-20T06:29:49.145Z","updated_at":"2024-11-20T06:29:49.904Z","avatar_url":"https://github.com/ankitbko.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Use ChatGPT to write commit messages\nGit hook that calls ChatGPT to generate commit message based on staged content.\n\n## Installation\n1. Copy the `prepare-commit-msg` file into your repository's `.git/hooks` folder.\n1. Make sure python3 and requests library is installed.\n1. Set environment variable `CHATGPT_API_KEY` to your [OpenAI API Key](https://platform.openai.com/account/api-keys).\n\n# Usage\nRun `git commit` and an editor will open with generated commit message.\n\nRun `git commit -m Your_Message` and ChatGPT will take Your_Message into consideration while generating the commit message.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankitbko%2Fchatgpt-commit-message-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fankitbko%2Fchatgpt-commit-message-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankitbko%2Fchatgpt-commit-message-hook/lists"}