{"id":30918959,"url":"https://github.com/ali-hv/check-revert-comments","last_synced_at":"2026-05-15T22:36:33.934Z","repository":{"id":313687538,"uuid":"1052126850","full_name":"ali-hv/check-revert-comments","owner":"ali-hv","description":"A pre-commit hook that prevents committing files containing # REVERT markers.","archived":false,"fork":false,"pushed_at":"2025-09-07T19:36:58.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-07T21:25:08.370Z","etag":null,"topics":["git","hook","pre-commit","pre-commit-hooks","precommit"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ali-hv.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-09-07T13:11:50.000Z","updated_at":"2025-09-07T19:42:47.000Z","dependencies_parsed_at":"2025-09-07T21:35:17.852Z","dependency_job_id":null,"html_url":"https://github.com/ali-hv/check-revert-comments","commit_stats":null,"previous_names":["ali-hv/check-revert-comments"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ali-hv/check-revert-comments","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali-hv%2Fcheck-revert-comments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali-hv%2Fcheck-revert-comments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali-hv%2Fcheck-revert-comments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali-hv%2Fcheck-revert-comments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ali-hv","download_url":"https://codeload.github.com/ali-hv/check-revert-comments/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali-hv%2Fcheck-revert-comments/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33082103,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"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":["git","hook","pre-commit","pre-commit-hooks","precommit"],"created_at":"2025-09-10T00:56:04.421Z","updated_at":"2026-05-15T22:36:33.908Z","avatar_url":"https://github.com/ali-hv.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# check-revert-comments\n\nA [pre-commit](https://pre-commit.com/) hook that prevents committing files containing `# REVERT` markers.  \n\nUse this when you add temporary debug/testing code with a `# REVERT` comment above it, and want to ensure you never accidentally commit it.\n\n---\n\n## 🚀 Installation\n\n1. Install [pre-commit](https://pre-commit.com/#installation) if you don’t have it yet:\n\n```bash\npip install pre-commit\n```\n\n2. Add this hook to your project’s .pre-commit-config.yaml:\n\n```bash\nrepos:\n  - repo: https://github.com/your-org/check-revert-comments\n    rev: v1.0.0   # or a specific commit SHA / tag\n    hooks:\n      - id: check-revert-comments\n```\n\n3. Install the hooks into your repo:\n\n```bash\npre-commit install\n```\n\n\n## 🧪 Example\n\nIf you stage a file with:\n\n```python\nfor i in items:\n    # REVERT\n    break\n```\n\nThe commit will be blocked:\n\n```bash\n❌ Commit blocked: Found \"# REVERT\" markers:\nFile: src/test_script.py\n12:    # REVERT\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fali-hv%2Fcheck-revert-comments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fali-hv%2Fcheck-revert-comments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fali-hv%2Fcheck-revert-comments/lists"}