{"id":20182956,"url":"https://github.com/theogravity/git-commit-stamper","last_synced_at":"2026-05-01T22:35:28.403Z","repository":{"id":43965885,"uuid":"252569555","full_name":"theogravity/git-commit-stamper","owner":"theogravity","description":"Updates a log file with selected last git commit data","archived":false,"fork":false,"pushed_at":"2023-01-06T02:45:45.000Z","size":477,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T07:04:59.542Z","etag":null,"topics":["changelog","git","nodejs","template"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/theogravity.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-02T21:35:51.000Z","updated_at":"2021-05-09T20:33:14.000Z","dependencies_parsed_at":"2023-02-05T03:46:33.449Z","dependency_job_id":null,"html_url":"https://github.com/theogravity/git-commit-stamper","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":"theogravity/boilerplate-typescript-old","purl":"pkg:github/theogravity/git-commit-stamper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theogravity%2Fgit-commit-stamper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theogravity%2Fgit-commit-stamper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theogravity%2Fgit-commit-stamper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theogravity%2Fgit-commit-stamper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theogravity","download_url":"https://codeload.github.com/theogravity/git-commit-stamper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theogravity%2Fgit-commit-stamper/sbom","scorecard":{"id":879525,"data":{"date":"2025-08-11","repo":{"name":"github.com/theogravity/git-commit-stamper","commit":"e56d8a119986d76f639275d3ef82ba26dfa01cf3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"36 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-hwj9-h5mp-3pm3","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-w5p7-h5w8-2hfq","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T07:32:57.043Z","repository_id":43965885,"created_at":"2025-08-24T07:32:57.044Z","updated_at":"2025-08-24T07:32:57.044Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32515838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["changelog","git","nodejs","template"],"created_at":"2024-11-14T02:43:27.997Z","updated_at":"2026-05-01T22:35:28.384Z","avatar_url":"https://github.com/theogravity.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-commit-stamper\n\n[![NPM version](http://img.shields.io/npm/v/git-commit-stamper.svg?style=flat-square)](https://www.npmjs.com/package/git-commit-stamper)\n[![CircleCI](https://circleci.com/gh/theogravity/git-commit-stamper.svg?style=svg)](https://circleci.com/gh/theogravity/git-commit-stamper)\n![built with typescript](https://camo.githubusercontent.com/92e9f7b1209bab9e3e9cd8cdf62f072a624da461/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f4275696c74253230576974682f547970655363726970742f626c7565) \n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\nUpdates a log file with selected last git commit data using `handlebars` tags. \n\nThis is useful for stamping in the commit subject / body / etc into your changelog entry.\n\n\u003c!-- TOC --\u003e\n- [Install](#install)\n- [Usage](#usage)\n  - [newlines](#newlines)\n  - [Example](#example)\n  - [Including a summary in your changelog](#including-a-summary-in-your-changelog)\n  - [Skip stamping](#skip-stamping)\n  - [Extended usage](#extended-usage)\n\n\u003c!-- TOC END --\u003e\n\n## Install\n\n`npm i git-commit-stamper -g`\n\n## Usage\n\nThe basic command is:\n\n`$ git-commit-stamper parse \u003clogFile\u003e [outFile]`\n\nThe parser gets the last git commit and produces the following object, which is used for template data\nin `handlebars`:\n\n```json\n{\n  \"shortHash\": \"d2346fa\",\n  \"hash\": \"d2346faac31de5e954ef5f6baf31babcd3e899f2\",\n  \"subject\": \"initial commit\",\n  \"sanitizedSubject\": \"initial-commit\",\n  \"body\": \"this is the body of the commit message\",\n  \"summary\": \"This is a summary of the change\",\n  \"authoredOn\": \"1437988060\",\n  \"committedOn\": \"1437988060\",\n  \"author\": {\n    \"name\": \"Ozan Seymen\",\n    \"email\": \"oseymen@gmail.com\"\n  },\n  \"committer\": {\n    \"name\": \"Ozan Seymen\",\n    \"email\": \"oseymen@gmail.com\"\n  },\n  \"notes\": \"commit notes\",\n  \"branch\": \"master\",\n  \"tags\": ['R1', 'R2']\n}\n```\n\n### newlines\n\nThe following properties will have two newlines inserted at the end of their content:\n\n- `subject`\n- `sanitizedSubject`\n- `body`\n- `summary`\n- `notes`\n\nThis allows for the following:\n\n```text\n{{subject}}{{{body}}}\n```\n\nIf the content already has one newline, another will be added. If it has two, no changes will be made.\n\n### Example\n\n```text\n# CHANGELOG.log\n\nv2 - March 20, 2020\n\n{{subject}}\n```\n\n`$ git-commit-stamper parse CHANGELOG.log`\n\nOutputs:\n\n```text\nv2 - March 20, 2020\n\ninitial commit\n```\n\n### Including a summary in your changelog\n\nThe `body` content of the git commit might be too large for a changelog.\n\nThe template tag `summary` will be populated if in your commit body, you use the following syntax:\n\n```text\nThis is my subject line\n\n==summary==\nThis is a summary of the change\n==end summary==\n\nThe rest of the commit body\n```\n\nThe `body` tag will have the `==changelog==` markers and content removed (but they will remain in the\noriginal git commit message).\n\n```text\n## {{subject}}{{summary}}\n```\n\n```text\n## initial commit\n\nThis is a summary of the change\n```\n\nIf `summary` is not empty, then you do not have to worry about adding newlines.\n\n### Skip stamping\n\nIf you use this tool as part of your CI process, you can skip log stamping by including `[skip-changelog]`\nas part of the git commit subject line.\n\n### Extended usage\n\n```bash\n$ git-commit-stamper\n\ngit-commit-stamper \u003ccommand\u003e\n\nCommands:\n  git-commit-stamper parse \u003clogFile\u003e [outFile]  Parses a log file with template tags and replaces the\n                                                tags with the last git commit info.\n  git-commit-stamper tags                       Shows the template data that would be fed into\n                                                handlebars.\n\nOptions:\n  --help     Show help                                                                        [boolean]\n  --version  Show version number                                                              [boolean]\n```\n\n```bash\n$ git-commit-stamper parse --help\n\ngit-commit-stamper parse \u003clogFile\u003e [outFile]\n\nParses a log file with template tags and replaces the tags with the last git commit info.\n\nPositionals:\n  logFile  The log file to ingest.                                                  [string] [required]\n\nOptions:\n  --help      Show help                                                                       [boolean]\n  --version   Show version number                                                             [boolean]\n  --outFile   Writes output to specified file instead of the original.                         [string]\n  --simulate  Prints log output, does not write any data.                    [boolean] [default: false]                                                             [boolean]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheogravity%2Fgit-commit-stamper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheogravity%2Fgit-commit-stamper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheogravity%2Fgit-commit-stamper/lists"}