{"id":18291220,"url":"https://github.com/violinist-dev/git-log-format","last_synced_at":"2025-04-05T10:30:58.351Z","repository":{"id":45543912,"uuid":"97956330","full_name":"violinist-dev/git-log-format","owner":"violinist-dev","description":"Creates pretty readable changelog-like things from a git log (--oneline)","archived":false,"fork":false,"pushed_at":"2024-09-11T15:40:56.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T07:21:56.382Z","etag":null,"topics":["composer","composer-package","drupal","git","github","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/violinist-dev.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-21T14:26:36.000Z","updated_at":"2024-10-19T08:12:51.000Z","dependencies_parsed_at":"2024-11-14T16:29:04.236Z","dependency_job_id":"620d0fc3-8adf-4fc5-8e22-a069c4a85df3","html_url":"https://github.com/violinist-dev/git-log-format","commit_stats":{"total_commits":15,"total_committers":2,"mean_commits":7.5,"dds":0.1333333333333333,"last_synced_commit":"98dad01c6e27b60bca457717b69b36f09b681e99"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/violinist-dev%2Fgit-log-format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/violinist-dev%2Fgit-log-format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/violinist-dev%2Fgit-log-format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/violinist-dev%2Fgit-log-format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/violinist-dev","download_url":"https://codeload.github.com/violinist-dev/git-log-format/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247324510,"owners_count":20920660,"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":["composer","composer-package","drupal","git","github","php"],"created_at":"2024-11-05T14:13:32.181Z","updated_at":"2025-04-05T10:30:57.969Z","avatar_url":"https://github.com/violinist-dev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-log-format\n\n\n[![Packagist](https://img.shields.io/packagist/v/violinist-dev/git-log-format.svg?maxAge=3600)](https://packagist.org/packages/violinist-dev/git-log-format)\n[![Packagist](https://img.shields.io/packagist/dt/violinist-dev/git-log-format.svg?maxAge=3600)](https://packagist.org/packages/violinist-dev/git-log-format)\n[![Coverage Status](https://coveralls.io/repos/github/violinist-dev/git-log-format/badge.svg?branch=master)](https://coveralls.io/github/violinist-dev/git-log-format?branch=master)\n[![Violinist enabled](https://img.shields.io/badge/violinist-enabled-brightgreen.svg)](https://violinist.io)\n\n\nA convenience package to get formatted versions of the output of git log --oneline.\n\nThis is part of what powers the changelogs in the messages from Violinist.io.\n\n## Installation\n\n```bash\ncomposer require violinist-dev/git-log-format\n```\n\n## Usage\n\nSomehow get a string output from a git log. A command line way to do so is the following:\n\n```bash\ngit log abababa..fefefef --oneline\n```\n\nIn the above example, abababa and fefefef are both hashes in the commit history.\n\nThe output would be somewhat like this:\n\n```\nfefefef Fix bugs and add tests\ncdcdcdc Release features and probably introduce bugs\n\n```\n\nThen, pass the output to this package:\n\n```php\n$data = \\Violinist\\GitLogFormat\\ChangeLogData::createFromString('fefefef Fix bugs and add tests\ncdcdcdc Release features and probably introduce bugs');\n// Now add some info about what the source of the log is. Like so:\n$data-\u003esetGitSource('https://github.com/myname/mypackage');\n// Then get convenient output back, with links to the actual commits:\nprint $data-\u003egetAsMarkdown();\n// Prints:\n// - [fefefef](https://github.com/myname/mypackage/commit/fefefef) `Fix bugs and add tests`\n// - [cdcdcdc](https://github.com/myname/mypackage/commit/cdcdcdc) `Release features and probably introduce bugs`\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviolinist-dev%2Fgit-log-format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviolinist-dev%2Fgit-log-format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviolinist-dev%2Fgit-log-format/lists"}