{"id":16531394,"url":"https://github.com/marcbachmann/github-remote-commit","last_synced_at":"2026-04-19T17:04:43.204Z","repository":{"id":66338185,"uuid":"54161443","full_name":"marcbachmann/github-remote-commit","owner":"marcbachmann","description":":octocat: Github commit \u0026 pull request cli","archived":false,"fork":false,"pushed_at":"2023-12-15T08:16:31.000Z","size":5,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T14:40:22.295Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/marcbachmann.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":"2016-03-18T00:50:21.000Z","updated_at":"2016-11-01T08:34:25.000Z","dependencies_parsed_at":"2023-12-15T09:38:29.382Z","dependency_job_id":null,"html_url":"https://github.com/marcbachmann/github-remote-commit","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"617af123ae12aa5eb843cbb6005a9f2dbe7c760c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Fgithub-remote-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Fgithub-remote-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Fgithub-remote-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Fgithub-remote-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcbachmann","download_url":"https://codeload.github.com/marcbachmann/github-remote-commit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241637624,"owners_count":19995009,"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":[],"created_at":"2024-10-11T18:08:43.238Z","updated_at":"2026-04-19T17:04:43.138Z","avatar_url":"https://github.com/marcbachmann.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-remote-commit\n\n## cli\n\n### Commit a file\n```bash\ncommit package.json \\\n  -m 'Foo bar' \\\n  -b user/repo:master \\\n  -h fix-foo \\\n  -t [github-token]\n```\n\n### Create a pull request\n```bash\npull-request \\\n  -b user/repo:master \\\n  -h user/repo:fix-foo \\\n  --title 'Title of pull request' \\\n  --body 'Optional body of pull request' \\\n  -t [github-token]\n```\n\n### Commit and create a pull request at once\n```bash\npull-request package.json\n  -t [github-token]\n  -m 'Upgrade Version'\n  -h user/repo:fix-foo \\\n  -b user/repo:master \\\n  --title 'Title of pull request'\n```\n\n\nThe module **will** support std-input for the file content\n```bash\ncommit package.json -b user/repo:master -h foobar -m 'Foo bar' -\n```\n\n\n## api\n\n```javascript\nvar github = require('github-remote-commit')\ngithub.commit(config, callback)\ngithub.pullRequest(config, callback)\n```\n\n### github.commit config\n```javascript\n{\n  token: 'github token'\n  message: 'commit message',\n\n  // one file\n  file: {path: 'path/to/file.js', content: 'content as string'},\n  // or many\n  files: [{path: 'path/to/file.js', content: 'content as string'}],\n\n  base: 'user/repo:branch', # use user/repo:master\n  head: 'branch-to-create' # just use 'master' if\n                           # you want to commit to that branch\n```\n\n\n### github.pullRequest config\n```javascript\n{\n  token: 'github token',\n  message: 'commit message',\n\n  // one file\n  file: {path: 'path/to/file.js', content: 'content as string'},\n  // or many\n  files: [{path: 'path/to/file.js', content: 'content as string'}],\n\n  base: 'user/repo:branch', # use user/repo:master\n  head: 'branch-to-create', # just use 'master' if\n                            # you want to commit to that branch\n\n  pr: {\n    title: 'Pull request title',\n    body: 'Pull request body',\n    // or\n    issue: 1 // issue to convert\n  }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcbachmann%2Fgithub-remote-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcbachmann%2Fgithub-remote-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcbachmann%2Fgithub-remote-commit/lists"}