{"id":23611220,"url":"https://github.com/jacklehamster/autocommit","last_synced_at":"2026-02-14T04:40:46.712Z","repository":{"id":219861026,"uuid":"750106346","full_name":"jacklehamster/autocommit","owner":"jacklehamster","description":"Bash script hooked up with npm for auto-committing changes into git.","archived":false,"fork":false,"pushed_at":"2024-10-23T06:28:49.000Z","size":132,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-27T16:13:38.758Z","etag":null,"topics":["ai","commit-message","github","openai"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/jacklehamster.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":"2024-01-30T01:51:52.000Z","updated_at":"2024-10-23T06:28:53.000Z","dependencies_parsed_at":"2024-06-09T06:28:55.209Z","dependency_job_id":"1bdda180-8646-4113-8a27-71868043d1de","html_url":"https://github.com/jacklehamster/autocommit","commit_stats":null,"previous_names":["jacklehamster/autocommit"],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklehamster%2Fautocommit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklehamster%2Fautocommit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklehamster%2Fautocommit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklehamster%2Fautocommit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacklehamster","download_url":"https://codeload.github.com/jacklehamster/autocommit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239483486,"owners_count":19646424,"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":["ai","commit-message","github","openai"],"created_at":"2024-12-27T16:13:42.207Z","updated_at":"2025-11-06T04:30:34.386Z","avatar_url":"https://github.com/jacklehamster.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# autocommit\n\n[![npm version](https://badge.fury.io/js/@dobuki%2Fautocommit.svg)](https://www.npmjs.com/package/@dobuki/autocommit) [![Version](https://img.shields.io/github/v/release/jacklehamster/autocommit)](https://github.com/jacklehamster/autocommit) [![License](https://img.shields.io/github/license/jacklehamster/autocommit)](https://github.com/jacklehamster/autocommit)\n\n![icon](https://jacklehamster.github.io/autocommit/icon.png)\n\n## description\n\nThis is the ultimate command for lazy developers who can't be bothered writing a description of their commits.\n\nThis will commit your files, with a commented generated by OpenAI, trying to best understand what you did based on your diff.\n\nAt the end, the AI adds a lame joke to your commit, because hey... why not?\n\n## usage\n\nFirst, set an environment variable for your OpenAI key in your `~/.bash_profile` or `~/.zprofile`:\n\n```bash\nexport OPENAI_API_KEY=sk-?????????\nexport OPENAI_ORGANIZATION=org-??? # Your organization (optional)\nexport OPENAI_PROJECT_AI_COMMIT=proj_??? # Your project (optional)\n```\n\nThen execute the NPX command:\n\n```bash\n# execute:\n$ npx @dobuki/autocommit\n```\n\nYour files will be commmitted, with a comment generated by OpenAI:\n\n*Example:*\n\n```text\nRefactored the OpenAI integration to handle cases where the API key is not provided.\n\n- Replaced the condition of `process.env.OPENAI_API_KEY` with `process.env.OPENAI_API_KEY?.length` to check if the API key has a length before creating a new OpenAI instance.\n\nFiles:\nM README.md\nM src/open-ai.js\n\nCommitted using auto-commit: Sun Jun 09 2024 23:41:27 GMT-0700 (Pacific Daylight Time)\nAutocommit project: https://www.npmjs.com/package/@dobuki/autocommit\nAll the lame jokes were generated by AI.\n```\n\nNote: If you don't have an OpenAI key, it will just skip the descriptive comment and write something simple like:\n\n```text\nFiles:\nM src/auto-commit.js\n\nCommitted using auto-commit: Sun Jun 09 2024 01:00:35 GMT-0700 (Pacific Daylight Time)\nAutocommit project: https://www.npmjs.com/package/@dobuki/autocommit\nAll the lame jokes were generated by AI.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacklehamster%2Fautocommit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacklehamster%2Fautocommit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacklehamster%2Fautocommit/lists"}