{"id":21201685,"url":"https://github.com/oleander/commitment","last_synced_at":"2026-04-28T19:34:50.720Z","repository":{"id":178898264,"uuid":"662533808","full_name":"oleander/commitment","owner":"oleander","description":"Git Commit Formatter is a Rust-based tool that standardizes git commit messages by aligning them with a ticketing format, like `ABC-123`. It cleverly extracts ticket numbers from branch names or commit messages, ensures no uncommitted changes are left, and prefixes commit messages with relevant ticket numbers","archived":false,"fork":false,"pushed_at":"2023-12-19T21:24:29.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-21T14:47:38.050Z","etag":null,"topics":["commit-message-formatter","git","git-hooks","issue-tracking","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/oleander.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,"publiccode":null,"codemeta":null}},"created_at":"2023-07-05T10:39:40.000Z","updated_at":"2024-11-16T00:53:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ecfbfb4-2c35-4c2c-87f8-6372813358a0","html_url":"https://github.com/oleander/commitment","commit_stats":null,"previous_names":["oleander/commitment"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Fcommitment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Fcommitment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Fcommitment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Fcommitment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oleander","download_url":"https://codeload.github.com/oleander/commitment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243654400,"owners_count":20325893,"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":["commit-message-formatter","git","git-hooks","issue-tracking","rust"],"created_at":"2024-11-20T20:10:31.014Z","updated_at":"2025-12-29T19:04:35.333Z","avatar_url":"https://github.com/oleander.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Commit Formatter\n\nGit Commit Formatter is a Rust project aimed to standardize git commit messages. It utilizes the branch name and commit message to create a formatted commit. It follows a ticketing system for tracking issues, using a pattern like `ABC-123` where `ABC` stands for a project key and `123` represents an issue number.\n\n* ABC-123-v12 Message -\u003e ABC-123 Message\n* ABC-123b Message    -\u003e ABC-123 Message\n* ABC-123 Message     -\u003e ABC-123 Message\n* Message             -\u003e Message\n\n## Features\n\n* Checks if there are any uncommitted changes in the current repository.\n* Extracts the ticket from the branch name and the commit message.\n* Creates a commit message following a specific format.\n* Commits the changes if all the conditions are met.\n* Prefixes the commit message with the ticket number\n  * If the ticket number is not present in the branch name, the commit message is prefixed with the ticket number extracted from the commit message\n  * If the ticket number is not present in the commit message, the commit message is prefixed with the ticket number extracted from the branch name\n  * If the ticket number is not present in the branch name or the commit message, the commit message is not prefixed with a ticket number\n\n## Install\n\n1. Clone this repo\n2. `cd` into the repo\n3. `cargo install --path .`\n\n## Usage\n\n```bash\n$ commitment \"Your commit message\"\n```\n\n## Tests\n\nTests are included for the functions `to_ticket()`, `commit()`, and `capitalize_first()`. These tests can be run using the command:\n\n```bash\n$ cargo test\n```\n\n## Dependencies\n\n* [git2](https://crates.io/crates/git2): Rust bindings to the libgit2 library, provides the ability to create, manage, and manipulate Git repositories.\n* [regex](https://crates.io/crates/regex): Rust library for parsing, compiling, and executing regular expressions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleander%2Fcommitment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foleander%2Fcommitment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleander%2Fcommitment/lists"}