{"id":15553361,"url":"https://github.com/bahmutov/make-empty-github-commit","last_synced_at":"2025-09-26T12:31:30.255Z","repository":{"id":47099831,"uuid":"105542674","full_name":"bahmutov/make-empty-github-commit","owner":"bahmutov","description":"Makes a new empty commit on GitHub using API","archived":false,"fork":false,"pushed_at":"2021-09-13T16:45:29.000Z","size":951,"stargazers_count":10,"open_issues_count":11,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-27T20:56:08.640Z","etag":null,"topics":["commit","github","github-api"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/bahmutov.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}},"created_at":"2017-10-02T14:14:50.000Z","updated_at":"2023-12-05T15:18:00.000Z","dependencies_parsed_at":"2022-08-24T05:20:45.077Z","dependency_job_id":null,"html_url":"https://github.com/bahmutov/make-empty-github-commit","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fmake-empty-github-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fmake-empty-github-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fmake-empty-github-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fmake-empty-github-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bahmutov","download_url":"https://codeload.github.com/bahmutov/make-empty-github-commit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234309726,"owners_count":18811949,"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","github","github-api"],"created_at":"2024-10-02T14:30:12.874Z","updated_at":"2025-09-26T12:31:29.918Z","avatar_url":"https://github.com/bahmutov.png","language":"JavaScript","readme":"# make-empty-github-commit ![CI status](https://github.com/bahmutov/make-empty-github-commit/workflows/ci/badge.svg?branch=master)\n\n\u003e Makes a new empty commit on GitHub using API\n\n[![NPM][npm-icon] ][npm-url]\n\n[![semantic-release][semantic-image] ][semantic-url]\n[![js-standard-style][standard-image]][standard-url]\n\n## Install\n\nRequires [Node](https://nodejs.org/en/) version 6 or above.\n\n```sh\nnpm install --save make-empty-github-commit\n```\n\n## Use\n\n### CLI\n\nFrom command line\n\n```\n$(npm bin)/empty-commit --repo \u003cusername/repo\u003e --message \"Empty commit message\"\n```\n\nYou can pass repo in different format, it will be parsed using\n[parse-github-repo-url](https://github.com/repo-utils/parse-github-repo-url).\n\nOptional arguments:\n\n```\n--branch \u003cmaster\u003e\n```\n\nAliases: `--repo -r`, `--message -m`, `--branch -b`\n\nFor authentication, set environment variable with your GitHub personal token\nunder name `TOKEN`, `GH_TOKEN` or `GITHUB_TOKEN`\n\n### API\n\n```js\nconst emptyGitHubCommit = require('make-empty-github-commit')\nemptyGitHubCommit({\n  owner: 'username',\n  repo: 'repo name',\n  token: process.env.TOKEN,\n  message: 'my message',\n  branch: 'develop' // \"master\" is default\n}).then(console.log, e =\u003e {\n  console.error(e)\n  process.exit(1)\n})\n```\n\nResolves with an object with at least `sha` property of the new commit.\n\nUses [http://mikedeboer.github.io/node-github](http://mikedeboer.github.io/node-github)\nto make API calls.\n\n### Testing\n\nTo test this project I created dummy repo\n[test-make-empty-github-commit](https://github.com/bahmutov/test-make-empty-github-commit).\nSee its [commit history](https://github.com/bahmutov/test-make-empty-github-commit/commits/master)\nto see empty commit messages created from this repository using\ntests in [test](test) folder.\n\n### Debugging\n\nRun the tool with environment variable `DEBUG=make-empty-github-commit`\n\n## Related\n\nThis code started as a fork of [commit-to-github](https://www.npmjs.com/package/commit-to-github),\nbut was simplified for creating just empty commits.\n\n### Small print\n\nAuthor: Gleb Bahmutov \u0026lt;gleb.bahmutov@gmail.com\u0026gt; \u0026copy; 2017\n\n* [@bahmutov](https://twitter.com/bahmutov)\n* [glebbahmutov.com](https://glebbahmutov.com)\n* [blog](https://glebbahmutov.com/blog)\n\nLicense: MIT - do anything with the code, but don't blame me if it does not work.\n\nSupport: if you find any problems with this module, email / tweet /\n[open issue](https://github.com/bahmutov/make-empty-github-commit/issues) on Github\n\n## MIT License\n\nCopyright (c) 2017 Gleb Bahmutov \u0026lt;gleb.bahmutov@gmail.com\u0026gt;\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\n[npm-icon]: https://nodei.co/npm/make-empty-github-commit.svg?downloads=true\n[npm-url]: https://npmjs.org/package/make-empty-github-commit\n[semantic-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\n[semantic-url]: https://github.com/semantic-release/semantic-release\n[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n[standard-url]: http://standardjs.com/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahmutov%2Fmake-empty-github-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbahmutov%2Fmake-empty-github-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahmutov%2Fmake-empty-github-commit/lists"}