{"id":20490186,"url":"https://github.com/open-turo/action-pre-commit","last_synced_at":"2026-04-02T20:13:12.534Z","repository":{"id":37052112,"uuid":"459347753","full_name":"open-turo/action-pre-commit","owner":"open-turo","description":"GitHub Action for running pre-commit hooks","archived":false,"fork":false,"pushed_at":"2026-03-08T00:16:44.000Z","size":76,"stargazers_count":2,"open_issues_count":4,"forks_count":3,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-03-08T06:16:06.588Z","etag":null,"topics":["action","actions","ci","gha","github","lint","linting","pre-commit","tool","tooling","tools"],"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/open-turo.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":".github/CODEOWNERS","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":"2022-02-14T22:35:04.000Z","updated_at":"2026-02-24T23:19:00.000Z","dependencies_parsed_at":"2023-10-14T22:32:15.023Z","dependency_job_id":"f7893f19-cd0b-4d7b-b2e0-207c843a3ff9","html_url":"https://github.com/open-turo/action-pre-commit","commit_stats":{"total_commits":44,"total_committers":10,"mean_commits":4.4,"dds":0.6590909090909092,"last_synced_commit":"fb5f2335c9ceb865334796ec81da9b7282ec1f3f"},"previous_names":[],"tags_count":48,"template":false,"template_full_name":null,"purl":"pkg:github/open-turo/action-pre-commit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-turo%2Faction-pre-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-turo%2Faction-pre-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-turo%2Faction-pre-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-turo%2Faction-pre-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/open-turo","download_url":"https://codeload.github.com/open-turo/action-pre-commit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-turo%2Faction-pre-commit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30322634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T01:36:58.598Z","status":"online","status_checked_at":"2026-03-10T02:00:06.579Z","response_time":106,"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":["action","actions","ci","gha","github","lint","linting","pre-commit","tool","tooling","tools"],"created_at":"2024-11-15T17:15:53.371Z","updated_at":"2026-03-10T02:01:03.805Z","avatar_url":"https://github.com/open-turo.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `open-turo/action-pre-commit`\n\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- action-docs-description --\u003e\n## Description\n\nGitHub Action for running pre-commit hooks against the repository. Conditionally installs tools needed for the Action to be able to perform its duties such as `npm`, `pre-commit`, etc.\n\u003c!-- action-docs-description --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n[![Release](https://img.shields.io/github/v/release/open-turo/action-pre-commit)](https://github.com/open-turo/action-pre-commit/releases/)\n[![Tests pass/fail](https://img.shields.io/github/workflow/status/open-turo/action-pre-commit/CI)](https://github.com/open-turo/action-pre-commit/actions/)\n[![License](https://img.shields.io/github/license/open-turo/action-pre-commit)](./LICENSE)\n[![Contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg)](https://github.com/dwyl/esta/issues)\n![CI](https://github.com/open-turo/action-pre-commit/actions/workflows/release.yaml/badge.svg)\n[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)\n[![Conventional commits](https://img.shields.io/badge/conventional%20commits-1.0.2-%23FE5196?logo=conventionalcommits\u0026logoColor=white)](https://conventionalcommits.org)\n[![Join us!](https://img.shields.io/badge/Turo-Join%20us%21-593CFB.svg)](https://turo.com/jobs)\n\n## Usage\n\nBasic usage with default options:\n\n```yaml\njobs:\n  lint:\n    steps:\n      - uses: actions/checkout@v3\n        with:\n          fetch-depth: 0\n      - uses: open-turo/action-pre-commit@v2\n```\n\nOverriding defaults:\n\n```yaml\njobs:\n  lint:\n    steps:\n      - uses: actions/checkout@v3\n        with:\n          fetch-depth: 0\n      - uses: open-turo/action-pre-commit@v2\n        with:\n          # Override the config file used by default\n          config-file: .commitlintrc.yaml\n          # Don't include `@turo/conventional-commit` configuration\n          turo-conventional-commit: false\n          # Only run pre-commit against changed files, instead of all files\n          only-changed: true\n```\n\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- action-docs-inputs --\u003e\n## Inputs\n\n| parameter | description | required | default |\n| --- | --- | --- | --- |\n| config-file | The config file to present to commitlint-github-action | `true` | .commitlintrc.yaml |\n| turo-conventional-commit | Set this to \"false\" to customize conventional commit configuration | `true` | true |\n| only-changed | Set this to \"true\" to only run pre-commit against changed files, and not the entire repository | `false` |  |\n| stage | Set this to run pre-commit against a specific stage of the pre-commit hooks. | `false` |  |\n| s3-bucket-name | S3 bucket name to cache node_modules to speed up dependency installation. | `false` |  |\n| s3-bucket-region | S3 bucket region to cache node_modules to speed up dependency installation. | `false` |  |\n| github-token | Sets a GitHub token that allows pre-commit to fetch private repos | `false` |  |\n\u003c!-- action-docs-inputs --\u003e\n\n\u003c!-- action-docs-outputs --\u003e\n## Outputs\n\n| parameter | description |\n| --- | --- |\n| cache-hit | Whether the cache was hit when installing dependencies |\n\u003c!-- action-docs-outputs --\u003e\n\n\u003c!-- action-docs-runs --\u003e\n## Runs\n\nThis action is a `composite` action.\n\u003c!-- action-docs-runs --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n## Get Help\n\nPlease review Issues, post new Issues against this repository as needed.\n\n## Contributions\n\nPlease see [here](https://github.com/open-turo/contributions) for guidelines on how to contribute to this project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-turo%2Faction-pre-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-turo%2Faction-pre-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-turo%2Faction-pre-commit/lists"}