{"id":26426625,"url":"https://github.com/yarlson/git-gen","last_synced_at":"2025-03-18T03:34:07.065Z","repository":{"id":218236236,"uuid":"745938798","full_name":"yarlson/git-gen","owner":"yarlson","description":"🧩 Git-Gen: Automated Git Commit Message Generator","archived":false,"fork":false,"pushed_at":"2025-01-12T07:00:05.000Z","size":31,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T07:19:34.266Z","etag":null,"topics":["chatgpt","commit","git"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/yarlson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-20T15:55:49.000Z","updated_at":"2025-01-12T07:00:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"73f24cdf-a2e1-44c2-90f1-a6e2ba6570b0","html_url":"https://github.com/yarlson/git-gen","commit_stats":null,"previous_names":["yarlson/git-gen"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yarlson%2Fgit-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yarlson%2Fgit-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yarlson%2Fgit-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yarlson%2Fgit-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yarlson","download_url":"https://codeload.github.com/yarlson/git-gen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244152271,"owners_count":20406963,"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"],"created_at":"2025-03-18T03:34:06.636Z","updated_at":"2025-03-18T03:34:07.060Z","avatar_url":"https://github.com/yarlson.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧩 Git Plugins Collection: AI-Powered Git Tools\n\nA collection of Git plugins leveraging Anthropic's Claude AI for better development workflows.\n\n## Available Plugins\n\n### 1. git-gen: Commit Message Generator\n\nGenerates meaningful commit messages by analyzing your changes.\n\n### 2. git-ch: Changelog Generator\n\nGenerates changelogs between git tags with structured formatting.\n\n## Installation\n\n1. **Clone the Repository**:\n\n   ```bash\n   git clone https://github.com/yarlson/git-gen.git\n   ```\n\n2. **Make the Scripts Executable**:\n\n   ```bash\n   chmod +x git-gen git-ch\n   ```\n\n3. **Create Symbolic Links**:\n   ```bash\n   sudo ln -s \"$(pwd)/git-gen\" /usr/local/bin/git-gen\n   sudo ln -s \"$(pwd)/git-ch\" /usr/local/bin/git-ch\n   ```\n\n## Requirements\n\n- `git`: Version control system\n- `jq`: Command-line JSON processor\n- `curl`: Data transfer tool\n- Anthropic API key\n\n## Configuration\n\n### Setting up the API Key\n\nBoth plugins require an Anthropic API key set as an environment variable:\n\n```bash\nexport ANTHROPIC_API_KEY='your_api_key_here'\n```\n\nFor persistence, add it to your shell configuration file:\n\n```bash\necho 'export ANTHROPIC_API_KEY=\"your_api_key_here\"' \u003e\u003e ~/.bashrc\n# or\necho 'export ANTHROPIC_API_KEY=\"your_api_key_here\"' \u003e\u003e ~/.zshrc\n```\n\n**Security Note:** Consider the security implications of storing API keys in configuration files, especially on shared systems.\n\n## Usage\n\n### git-gen: Commit Message Generator\n\nGenerate and commit changes with AI-powered commit messages:\n\n```bash\ngit gen                     # Generate message based on changes\ngit gen \"purpose details\"   # Optional: Provide context if purpose isn't clear from the changes\n```\n\nThe plugin will:\n\n1. Stage changes (`git add .`)\n2. Analyze the repository state\n3. Generate a commit message\n4. Prompt for action:\n   - `y` - accept and commit\n   - `n` - generate new message\n   - `e` - edit in $EDITOR\n\n#### Commit Message Style\n\nGenerated messages follow these principles:\n\n- Uses conventional commit format (e.g., `feat`, `fix`, `refactor`)\n- Includes scope when relevant (e.g., `feat(auth)`, `fix(api)`)\n- Provides specific details about changes\n- Mentions the impact or improvement\n- Maintains consistency with your repository's commit history\n\nExample messages:\n\n```\nfeat(api): implement rate limiting to handle 10k requests/min\nfix(cache): resolve memory leak by adding LRU eviction\nrefactor(auth): extract JWT validation into middleware for better testing\n```\n\n### git-ch: Changelog Generator\n\nGenerate changelogs between git tags:\n\n```bash\ngit ch \u003e CHANGELOG.md    # Generate changelog between last two tags\n```\n\nThe plugin will:\n\n1. Find the last two tags in your repository\n2. Analyze commits and changes between tags\n3. Generate a structured changelog with:\n   - Breaking changes\n   - New features\n   - Improvements\n   - Bug fixes\n4. List all commits with their hashes\n\n#### Changelog Format\n\nGenerated changelogs follow this structure:\n\n```markdown\n# Version X.Y.Z\n\n### Breaking Changes\n\n- Changed authentication flow to OAuth2-only, requiring API key migration\n\n### Features\n\n- Added metrics collection API with Prometheus integration\n\n### Improvements\n\n- Updated Redis client to v7.2.0 for improved stability\n- Updated several dependencies for security and performance\n\n### Bug Fixes\n\n- Fixed race condition in concurrent job processing\n\n## Commits\n\n- f8dcafd3e359856f36bc8e06df7d45c21a409c5e feat(cli): add version command\n- e300a1edd86ef7dfb9ae7d606c32dec6fc3bff05 chore(deps): update dependencies\n```\n\n## Contributing\n\nContributions are welcome! Feel free to submit issues or pull requests on the repository.\n\n## License\n\nThis project is licensed under the MIT License. See [LICENSE.md](LICENSE.md) for details.\n\n## Security\n\n- Keep your Anthropic API key secure\n- Review generated content before using it\n- Ensure you comply with Anthropic's terms of service and use case policies\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyarlson%2Fgit-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyarlson%2Fgit-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyarlson%2Fgit-gen/lists"}