{"id":28726760,"url":"https://github.com/boidolr/pre-commit-msg","last_synced_at":"2026-02-08T14:25:35.116Z","repository":{"id":41175781,"uuid":"447336656","full_name":"boidolr/pre-commit-msg","owner":"boidolr","description":"Automagically prefix and format commit messages when committing","archived":false,"fork":false,"pushed_at":"2025-05-26T03:29:23.000Z","size":372,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-26T04:51:17.634Z","etag":null,"topics":["git","git-hooks","pre-commit"],"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/boidolr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-01-12T18:57:56.000Z","updated_at":"2025-05-26T03:29:26.000Z","dependencies_parsed_at":"2023-10-14T19:03:44.779Z","dependency_job_id":"192a7b59-52ff-41f2-a1ae-c6295ca3b627","html_url":"https://github.com/boidolr/pre-commit-msg","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/boidolr/pre-commit-msg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boidolr%2Fpre-commit-msg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boidolr%2Fpre-commit-msg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boidolr%2Fpre-commit-msg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boidolr%2Fpre-commit-msg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boidolr","download_url":"https://codeload.github.com/boidolr/pre-commit-msg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boidolr%2Fpre-commit-msg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259981476,"owners_count":22941149,"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":["git","git-hooks","pre-commit"],"created_at":"2025-06-15T13:08:50.194Z","updated_at":"2026-02-08T14:25:35.110Z","avatar_url":"https://github.com/boidolr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"pre-commit-msg\n[![tag](https://img.shields.io/github/v/tag/boidolr/pre-commit-msg?sort=semver)](https://github.com/boidolr/pre-commit-msg/tags)\n![python](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Fboidolr%2Fpre-commit-msg%2Fmain%2Fpyproject.toml)\n[![Build](https://github.com/boidolr/pre-commit-msg/actions/workflows/continous-integration.yml/badge.svg)](https://github.com/boidolr/pre-commit-msg/actions/workflows/continous-integration.yml)\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white)](https://github.com/pre-commit/pre-commit)\n================\n\nA collection of prepare message and commit message git hooks for use with the [pre-commit](https://github.com/pre-commit/pre-commit) framework. For details see the list of available hooks below.\n\n## Using pre-commit-msg with pre-commit\n\nAdd this to your `.pre-commit-config.yaml`:\n```\n    -   repo: https://github.com/boidolr/pre-commit-msg\n        rev: v1.4.0  # Use the ref you want to point at\n        hooks:\n        -   id: format-message\n        # -   id: ...\n```\nFor an extended example see [`.pre-commit-config.yaml`](.pre-commit-config.yaml).\n\n## Available hooks\n\n- **`prepare-message`**: Change commit messages to include a prefix.\n    - `--ignore-branch` will lead to the branch not being checked.\n    - `--pattern` can be used to change the feature branch pattern to take the message prefix from.\n        Needs to match with `--prefix-pattern`. Defaults to `feature/(\\w+-\\d+)`.\n    - `--prefix-pattern` should match the prefix of the message to normalize it.\n        Needs to match with `--pattern`. Defaults to `^\\s*\\w+-\\d+\\s*:`\n- **`format-message`**: Ensure commit message conforms to format of headline followed by two empty lines.\n    - `--capitalize` if the subject line should be capitalized. Other lines remain unchanged.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboidolr%2Fpre-commit-msg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboidolr%2Fpre-commit-msg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboidolr%2Fpre-commit-msg/lists"}