{"id":34776843,"url":"https://github.com/surajahasarinda/lazzy-commit","last_synced_at":"2026-04-21T08:01:16.146Z","repository":{"id":327799402,"uuid":"1110847959","full_name":"SurajaHasarinda/lazzy-commit","owner":"SurajaHasarinda","description":"AI-powered Git commit message generator with security validation (API key checking, sensitive data detection) ","archived":false,"fork":false,"pushed_at":"2025-12-05T20:24:42.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-09T09:38:55.797Z","etag":null,"topics":["ai","api-keys","commit","git"],"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/SurajaHasarinda.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-05T20:17:47.000Z","updated_at":"2025-12-05T20:26:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/SurajaHasarinda/lazzy-commit","commit_stats":null,"previous_names":["surajahasarinda/lazzy-commit"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/SurajaHasarinda/lazzy-commit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SurajaHasarinda%2Flazzy-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SurajaHasarinda%2Flazzy-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SurajaHasarinda%2Flazzy-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SurajaHasarinda%2Flazzy-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SurajaHasarinda","download_url":"https://codeload.github.com/SurajaHasarinda/lazzy-commit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SurajaHasarinda%2Flazzy-commit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32082780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ai","api-keys","commit","git"],"created_at":"2025-12-25T08:34:39.595Z","updated_at":"2026-04-21T08:01:16.139Z","avatar_url":"https://github.com/SurajaHasarinda.png","language":"Python","readme":"# Lazzy Commit 😪💤\n\nAI-powered commit message generator for git with built-in security validation and conventional commit format enforcement.\n\n## ✨ Features\n\n- 🤖 **AI-Generated Messages**: Uses Google Gemini to analyze git diffs and generate meaningful commit messages\n- 🔒 **Security Validation**: Automatically detects `API keys`, `tokens`, and `sensitive data` in commits\n- 📝 **Conventional Commits**: Enforces conventional commit format (feat, fix, docs, etc.)\n- ✅ **Smart Validation**: Validates message length, content quality, and format\n- ✏️ **Interactive Editing**: Review, edit, or regenerate commit messages before committing\n- 🚀 **Auto-Push**: Optional flag to push changes immediately after commit\n\n## 📋 Requirements\n\n- Python 3.7+\n- Git\n- Google Gemini API Key ([Get one here](https://makersuite.google.com/app/apikey))\n\n## 🚀 Quick Start\n\n### Windows\n\n1. **Clone and setup**:\n   ```powershell\n   git clone \u003crepository-url\u003e\n   cd lazzy-commit\n   .\\setup-path.bat\n   ```\n\n2. **Add to PATH**:\n   ```powershell\n   [Environment]::SetEnvironmentVariable(\"Path\", $env:Path + \";\u003crepository-path\u003e\", \"User\")\n   ```\n   example:\n   ```powershell\n   $ [Environment]::SetEnvironmentVariable(\"Path\", $env:Path + \";D:\\Repositories\\lazzy-commit\", \"User\")\n   ```\n   ⚠️ Restart your pc after adding to PATH for changes to take effect.\n\n3. **Configure API Key**:\n   - Edit `.env` file\n   - Add your Gemini API key and the model you want to use:\n     ```\n     GEMINI_API_KEY=your_api_key_here\n     GEMINI_MODEL=gemini-2.0-flash-exp\n     ```\n\n4. **Run from any git repository**:\n   ```powershell\n   lazzycommit\n   ```\n\n## 📖 Usage\n\n### Basic Usage\n\nStage your changes and run:\n```bash\nlazzycommit\n```\n\nThe tool will:\n1. 🔍 Analyze your staged changes\n2. 🤖 Generate a commit message using AI\n3. 📝 Display the message for review\n4. ✅ Prompt you to confirm, edit, or cancel\n\n### Auto-Push\n\nCommit and push in one command:\n```bash\nlazzycommit --push\n# or\nlazzycommit -p\n```\n\n### Interactive Prompts\n\nAfter message generation, you can:\n- `y` (yes) - Accept and commit\n- `n` (no) - Cancel\n- `e` (edit) - Edit the message before committing\n\n## ⚙️ Configuration\n\nEdit `.env` to customize behavior:\n\n```env\n# Gemini API Configuration\nGEMINI_API_KEY=your_api_key_here\nGEMINI_MODEL=gemini-2.0-flash-exp\n\n# Validation Settings\nMAX_SUBJECT_LENGTH=100\n\n# Security Checks\nCHECK_API_KEYS=true\nCHECK_SENSITIVE_DATA=true\n\n# Format Enforcement\nENFORCE_CONVENTIONAL_COMMITS=true\nENFORCE_LENGTH_LIMIT=true\n```\n\n### Validation Rules\n\n**Security Validators**:\n- ✋ Blocks commits containing API keys, tokens, passwords\n- ✋ Detects sensitive patterns (AWS keys, private keys, etc.)\n\n**Format Validators**:\n- ✅ Enforces conventional commit format: `type: description`\n- ✅ Supported types: `feat`, `fix`, `docs`, `style`, `refactor`, `test`, `build`, `ci`, `modify`, `revert`\n- ✅ Subject line length limit (default: 100 characters)\n\n**Content Validators**:\n- ✋ Blocks WIP/TODO/FIXME commits\n- ✅ Ensures minimum message length (10 characters)\n\n## 🔧 Development\n\n### Install Dependencies\n\n```bash\npip install -r requirements.txt\n```\n\n### Run Locally\n\n```bash\npython main.py\n```\n\n## 📄 License\n\nMIT License - Feel free to use and modify\n\n## 🤝 Contributing\n\nContributions are welcome! Feel free to:\n- Report bugs\n- Suggest features\n- Submit pull requests\n\n---\n\n**Made with ❤️ and a bit of laziness** 😪💤\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurajahasarinda%2Flazzy-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsurajahasarinda%2Flazzy-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurajahasarinda%2Flazzy-commit/lists"}