{"id":15415913,"url":"https://github.com/tombruijn/commit-format","last_synced_at":"2025-09-08T05:34:02.914Z","repository":{"id":59152285,"uuid":"431968058","full_name":"tombruijn/commit-format","owner":"tombruijn","description":"Git commit formatter utility.","archived":false,"fork":false,"pushed_at":"2022-10-01T13:49:14.000Z","size":47,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-10T05:38:18.241Z","etag":null,"topics":["formatter","git"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tombruijn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-25T20:22:54.000Z","updated_at":"2022-08-23T10:44:15.000Z","dependencies_parsed_at":"2022-09-13T11:01:05.815Z","dependency_job_id":null,"html_url":"https://github.com/tombruijn/commit-format","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/tombruijn/commit-format","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tombruijn%2Fcommit-format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tombruijn%2Fcommit-format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tombruijn%2Fcommit-format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tombruijn%2Fcommit-format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tombruijn","download_url":"https://codeload.github.com/tombruijn/commit-format/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tombruijn%2Fcommit-format/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264926332,"owners_count":23684320,"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":["formatter","git"],"created_at":"2024-10-01T17:10:11.827Z","updated_at":"2025-07-12T02:38:30.172Z","avatar_url":"https://github.com/tombruijn.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Commit Format\n\nCommit Format is a formatter for commits to paste into a Git Pull Request\ndescription.\n\n## Installation\n\n1. Run `gem install commit_format`\n\n## Usage\n\n```\n# Print all commits on feature branch since branching off the default branch\n# Only works when not on the default branch\ncommit-format\n\n# Copy the output directly onto the clipboard on macOS\ncommit-format | pbcopy\n\n# Print the range of formatted commits\ncommit-format HEAD~1..HEAD\n\n# Prints the commits new in the 'my-feature' branch\ncommit-format main..my-feature\n\n# Print the last 5 commits\ncommit-format -n 5\n\n# Print all new commits since selected base branch\ncommit-format -b main\ncommit-format -b feature-branch\n\n# Print all commits with text lines joined into a paragraph\ncommit-format --paragraph\ncommit-format -p\n```\n\n## Features\n\n- Turns each commit subject into a markdown heading.\n- Indents all headings in the message body on level lower. Heading level 2\n  becomes heading level 3, etc.\n- Join text lines together as continuous paragraphs for easier reading in Pull\n  Requests. Markdown syntax like code block, blockquotes, lists, tables, etc.\n  are all kept in their original format.\n  ```\n  # For example:\n  A commit message with multiple text lines\n  across multiple lines.\n\n  # Becomes\n  A commit message with multiple text lines across multiple line.\n  ```\n\n## Development\n\n- Run `bundle install`\n- Install [mono](https://github.com/appsignal/mono).\n\n### Tracking changes\n\nUse mono to create a changeset per change.\n\n```\nmono changeset add\n```\n\n## Testing\n\n```\nbundle exec rspec\n```\n\n## Publishing\n\n```\nmono publish\n```\n\n## Resources\n\n- [Git is about communication](https://tomdebruijn.com/posts/git-is-about-communication/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftombruijn%2Fcommit-format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftombruijn%2Fcommit-format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftombruijn%2Fcommit-format/lists"}