{"id":15930012,"url":"https://github.com/saneef/debug-lefthook","last_synced_at":"2025-03-18T13:55:14.626Z","repository":{"id":222158939,"uuid":"756391466","full_name":"saneef/debug-lefthook","owner":"saneef","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-13T08:12:26.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-09T14:38:06.585Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/saneef.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}},"created_at":"2024-02-12T15:21:50.000Z","updated_at":"2024-02-12T15:22:03.000Z","dependencies_parsed_at":"2024-02-12T18:06:25.269Z","dependency_job_id":null,"html_url":"https://github.com/saneef/debug-lefthook","commit_stats":null,"previous_names":["saneef/debug-lefthook"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saneef%2Fdebug-lefthook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saneef%2Fdebug-lefthook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saneef%2Fdebug-lefthook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saneef%2Fdebug-lefthook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saneef","download_url":"https://codeload.github.com/saneef/debug-lefthook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244236102,"owners_count":20420752,"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":[],"created_at":"2024-10-07T00:22:37.140Z","updated_at":"2025-03-18T13:55:14.603Z","avatar_url":"https://github.com/saneef.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Solved] Debugging Lefthook Issue: Linted files during pre-commit are not committed\n\nIssue: https://github.com/evilmartians/lefthook/issues/628\n\n✅ **Solution**: Use [`stage_fixed: true`](https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md#stage_fixed) with each `commands` where you need to commit linted files.\n\n## Problem\n\nDuring commit, the Lefthook runs pre-commit commands. But, the changes made by the pre-commit command (especially `stylelint`) are not included in the commit.\n\n## Steps to reproduce\n\n1. Clone this repo locally.\n2. Install NPM packages using `npm install`.\n3. Open the file `css/styles.css`, delete the comment on line 7, and save.\n4. Stage the file `css/styles.css`, and commit.\n5. You should see the commit completed, and file `css/styles.css` with new changes. The changes that were made by pre-commit `stylelint` command.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaneef%2Fdebug-lefthook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaneef%2Fdebug-lefthook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaneef%2Fdebug-lefthook/lists"}