{"id":30061736,"url":"https://github.com/adnelson/commit-sum","last_synced_at":"2025-08-08T02:50:47.350Z","repository":{"id":306510079,"uuid":"1026422068","full_name":"adnelson/commit-sum","owner":"adnelson","description":"Automatically generate git commits using OpenAI","archived":false,"fork":false,"pushed_at":"2025-07-25T22:25:56.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-26T05:50:37.381Z","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/adnelson.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,"zenodo":null}},"created_at":"2025-07-25T21:32:18.000Z","updated_at":"2025-07-25T22:26:00.000Z","dependencies_parsed_at":"2025-07-26T05:50:39.153Z","dependency_job_id":"2be0cbf4-ef48-4267-bbe8-02bc5b9ae8e7","html_url":"https://github.com/adnelson/commit-sum","commit_stats":null,"previous_names":["adnelson/gen-commit"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/adnelson/commit-sum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnelson%2Fcommit-sum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnelson%2Fcommit-sum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnelson%2Fcommit-sum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnelson%2Fcommit-sum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adnelson","download_url":"https://codeload.github.com/adnelson/commit-sum/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnelson%2Fcommit-sum/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269356429,"owners_count":24403506,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-08-08T02:50:43.186Z","updated_at":"2025-08-08T02:50:47.299Z","avatar_url":"https://github.com/adnelson.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `commit-sum`\n\nTired of struggling to think of everything you're about to commit and how to summarize it? Here's a command-line tool to automatically generate your commit messages.\n\n## Setup\n\nAll you should need for this script to run is a valid OpenAI key under the environment variable `OPENAI_API_KEY`.\n\n## CLI\n\nYou can invoke the cli directly to generate a commit message, or even just to see what you've changed so far. Here are some options:\n\n```\n\u003e commit-sum --help\nUsage: commit-sum [options] [directory]\n\nGenerate a commit message with OpenAI\n\nArguments:\n  directory             Directory to analyze (defaults to current working directory)\n\nOptions:\n  --modified            Generate commit message for modified files\n  --staged              Generate commit message for staged files (default)\n  --all                 Generate commit message for all changes\n  --max-words \u003cnumber\u003e  Maximum number of words in the commit message\n  -h, --help            display help for command\n```\n\n## Git hook\n\nYou can create a git hook which will automatically invoke this script to create commit messages:\n\n1. Create `prepare-commit-msg` in your git hooks folder (i.e. `.git/hooks` or whereever you've configured them)\n2. Copy the contents of `hooks/prepare-commit-msg` in this repository and paste it into `prepare-commit-msg`\n3. Replace the command `tsx index.ts` (which is used internally in this repo) with `commit-sum` (the name of the binary provided by this package)\n4. Run `chmod +x path/to/hooks/prepare-commit-msg` to make it executable.\n\nNow whenever you `git commit`, your changes will be summarized by `commit-sum` for you automatically. Note that you can still run `git commit -m \"some message\"` if you want to commit with a particular message.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadnelson%2Fcommit-sum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadnelson%2Fcommit-sum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadnelson%2Fcommit-sum/lists"}