{"_id":"@boennemann/github-change-remote-files","_rev":"7-78685e8b409f63f6844165888681e37f","name":"@boennemann/github-change-remote-files","description":"create a new commit with a changed file","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.0":{"name":"@boennemann/github-change-remote-files","version":"1.0.0","description":"create a new commit with a changed file","main":"dist/index.js","scripts":{"build":"rimraf dist && mkdirp dist && babel src --out-dir dist","coverage":"nyc report","coverage:upload":"npm run -s coverage -- --reporter=text-lcov | coveralls","prepublish":"npm run build","pretest:unit":"npm run build && npm run test:build","test":"npm run test:style","test:build":"rimraf .test && mkdirp .test && babel test --out-dir .test","test:style":"standard","test:unit":"nyc tap --no-cov .test/*.js","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"standard":{"parser":"babel-eslint"},"repository":{"type":"git","url":"git+https://github.com/boennemann/github-change-remote-file.git"},"keywords":["git","commit"],"author":{"name":"Stephan Bönnemann","email":"stephan@boennemann.me","url":"http://boennemann.me/"},"license":"MIT","bugs":{"url":"https://github.com/boennemann/github-change-remote-file/issues"},"homepage":"https://github.com/boennemann/github-change-remote-file#readme","devDependencies":{"babel":"^5.8.20","babel-eslint":"^4.0.5","coveralls":"^2.11.3","mkdirp":"^0.5.1","nock":"^2.9.1","nyc":"^3.1.0","rimraf":"^2.4.2","semantic-release":"^4.0.2","standard":"^5.3.1","tap":"^1.3.2"},"dependencies":{"babel-core":"^5.8.20","es6-promisify":"^3.0.0","github":"^0.2.4","lodash":"^3.10.0"},"publishConfig":{"access":"public"},"gitHead":"d24b2962cc64365398e03a2ae5dc72e1c10a310b","_id":"@boennemann/github-change-remote-files@1.0.0","_shasum":"5d66d4342decdf906acbbe4612a5938ee54c25b3","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.2.1","_npmUser":{"name":"boennemann","email":"stephan@boennemann.me"},"dist":{"shasum":"5d66d4342decdf906acbbe4612a5938ee54c25b3","tarball":"https://registry.npmjs.org/@boennemann/github-change-remote-files/-/github-change-remote-files-1.0.0.tgz","integrity":"sha512-bb6XPfO3i7jYxp+t89UatvzChnSt5vgvGy+44sI4T5M4dZpxx3a1qosROUAach3zxhZbZwUuj4ht2OU4n3k1bA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBwPL5S+Aa6sNhv0ULg5lE6e6A5uS0g2ecY7AzABjk9RAiEAk09i1hKW3NrD5vT9QK3K0A3++ji0kC0112aA/i6/6lk="}]},"maintainers":[{"name":"boennemann","email":"stephan@boennemann.me"}]},"1.0.1":{"name":"@boennemann/github-change-remote-files","version":"1.0.1","description":"create a new commit with a changed file","main":"dist/index.js","scripts":{"build":"rimraf dist && mkdirp dist && babel src --out-dir dist","coverage":"nyc report","coverage:upload":"npm run -s coverage -- --reporter=text-lcov | coveralls","prepublish":"npm run build","pretest:unit":"npm run build && npm run test:build","test":"npm run test:style","test:build":"rimraf .test && mkdirp .test && babel test --out-dir .test","test:style":"standard","test:unit":"nyc tap --no-cov .test/*.js","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"standard":{"parser":"babel-eslint"},"repository":{"type":"git","url":"git+https://github.com/boennemann/github-change-remote-file.git"},"keywords":["git","commit"],"author":{"name":"Stephan Bönnemann","email":"stephan@boennemann.me","url":"http://boennemann.me/"},"license":"MIT","bugs":{"url":"https://github.com/boennemann/github-change-remote-file/issues"},"homepage":"https://github.com/boennemann/github-change-remote-file#readme","devDependencies":{"babel":"^5.8.20","babel-eslint":"^4.0.5","coveralls":"^2.11.3","mkdirp":"^0.5.1","nock":"^2.9.1","nyc":"^3.1.0","rimraf":"^2.4.2","semantic-release":"^4.0.2","standard":"^5.3.1","tap":"^1.3.2"},"dependencies":{"babel-core":"^5.8.20","es6-promisify":"^3.0.0","github":"^0.2.4","lodash":"^3.10.0"},"publishConfig":{"access":"public"},"gitHead":"8d5a135fffef91158e7c23e7338faeda41e63df9","_id":"@boennemann/github-change-remote-files@1.0.1","_shasum":"0a2675596afd161f6b5ca014682dd4a5ea8db03b","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.2.1","_npmUser":{"name":"boennemann","email":"stephan@boennemann.me"},"dist":{"shasum":"0a2675596afd161f6b5ca014682dd4a5ea8db03b","tarball":"https://registry.npmjs.org/@boennemann/github-change-remote-files/-/github-change-remote-files-1.0.1.tgz","integrity":"sha512-/KJl3rHt9VSKx6JxkgEiSSOWboL+PN8GEs3ctjh7BIwu7Hrr18CHHc4FGW+uuwkObNdgGQ17q615x3UW3T6SaQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGAk8ZgTIAPb0Rk141/TruNIbEe2zpgoE/0cWP6+TYY+AiEAuS/7COF07KJr6IFp/DxYho8VN5Ta5wDdXXyDCY//TxA="}]},"maintainers":[{"name":"boennemann","email":"stephan@boennemann.me"}]},"1.1.0":{"name":"@boennemann/github-change-remote-files","version":"1.1.0","description":"create a new commit with a changed file","main":"dist/index.js","scripts":{"build":"rimraf dist && mkdirp dist && babel src --out-dir dist","coverage":"nyc report","coverage:upload":"npm run -s coverage -- --reporter=text-lcov | coveralls","prepublish":"npm run build","pretest:unit":"npm run build && npm run test:build","test":"npm run test:style","test:build":"rimraf .test && mkdirp .test && babel test --out-dir .test","test:style":"standard","test:unit":"nyc tap --no-cov .test/*.js","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"standard":{"parser":"babel-eslint"},"repository":{"type":"git","url":"git+https://github.com/boennemann/github-change-remote-file.git"},"keywords":["git","commit"],"author":{"name":"Stephan Bönnemann","email":"stephan@boennemann.me","url":"http://boennemann.me/"},"license":"MIT","bugs":{"url":"https://github.com/boennemann/github-change-remote-file/issues"},"homepage":"https://github.com/boennemann/github-change-remote-file#readme","devDependencies":{"babel":"^5.8.20","babel-eslint":"^4.0.5","coveralls":"^2.11.3","mkdirp":"^0.5.1","nock":"^2.9.1","nyc":"^3.1.0","rimraf":"^2.4.2","semantic-release":"^4.0.2","standard":"^5.3.1","tap":"^1.3.2"},"dependencies":{"babel-core":"^5.8.20","es6-promisify":"^3.0.0","github":"^0.2.4","lodash":"^3.10.0"},"publishConfig":{"access":"public"},"gitHead":"4523cad5fb25b9d8062f13028f8c1b66d101f0b7","_id":"@boennemann/github-change-remote-files@1.1.0","_shasum":"302b983800945482fd54f390398b06887d6d4d93","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.2.1","_npmUser":{"name":"boennemann","email":"stephan@boennemann.me"},"dist":{"shasum":"302b983800945482fd54f390398b06887d6d4d93","tarball":"https://registry.npmjs.org/@boennemann/github-change-remote-files/-/github-change-remote-files-1.1.0.tgz","integrity":"sha512-vx48AO9Y2CrnDHalFjN/mfdlK7kHsWLPPTBisbsXxffTYNi0Q/UHVDqpX3iMMohpoZAPtClCKFIsFXShIIRuCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE2naT2IKyCXEpaH2c7mFgxANQdjkkKDgcPhlWDC83z9AiEA9fnilb/UCtMOlWoRjlr9ed5CyDak5gJomlKSoWUEeb8="}]},"maintainers":[{"name":"boennemann","email":"stephan@boennemann.me"}]},"1.1.1":{"name":"@boennemann/github-change-remote-files","version":"1.1.1","description":"create a new commit with a changed file","main":"dist/index.js","scripts":{"build":"rimraf dist && mkdirp dist && babel src --out-dir dist","coverage":"nyc report","coverage:upload":"npm run -s coverage -- --reporter=text-lcov | coveralls","prepublish":"npm run build","pretest:unit":"npm run build && npm run test:build","test":"npm run test:style","test:build":"rimraf .test && mkdirp .test && babel test --out-dir .test","test:style":"standard","test:unit":"nyc tap --no-cov .test/*.js","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"standard":{"parser":"babel-eslint"},"repository":{"type":"git","url":"git+https://github.com/boennemann/github-change-remote-file.git"},"keywords":["git","commit"],"author":{"name":"Stephan Bönnemann","email":"stephan@boennemann.me","url":"http://boennemann.me/"},"license":"MIT","bugs":{"url":"https://github.com/boennemann/github-change-remote-file/issues"},"homepage":"https://github.com/boennemann/github-change-remote-file#readme","devDependencies":{"babel":"^5.8.20","babel-eslint":"^4.0.5","coveralls":"^2.11.3","mkdirp":"^0.5.1","nock":"^2.9.1","nyc":"^3.1.0","rimraf":"^2.4.2","semantic-release":"^4.0.2","standard":"^5.3.1","tap":"^1.3.2"},"dependencies":{"babel-core":"^5.8.20","es6-promisify":"^3.0.0","github":"^0.2.4","lodash":"^3.10.0"},"publishConfig":{"access":"public"},"gitHead":"b9d30c0f597b42489c6255bbccf498acf828f285","_id":"@boennemann/github-change-remote-files@1.1.1","_shasum":"b3d815417569267b40625653ef1bc0c1efc7a757","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.2.1","_npmUser":{"name":"boennemann","email":"stephan@boennemann.me"},"dist":{"shasum":"b3d815417569267b40625653ef1bc0c1efc7a757","tarball":"https://registry.npmjs.org/@boennemann/github-change-remote-files/-/github-change-remote-files-1.1.1.tgz","integrity":"sha512-nh4qQostVg7BLy7IzL7b6kG1DCwZBP8cY6Feas3yp0WC6nlRupSQNxZOHSlPVHocc/2OojB/u9sTUF+t5LefWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQ/dXhUn9aO3BehpUDUFIO9F8dj/MoI837fWxajHGttgIgEKz34V/2YktwzPdaNkkZd/rLHkUP/2CwIRaBor79FM4="}]},"maintainers":[{"name":"boennemann","email":"stephan@boennemann.me"}]},"1.1.2":{"name":"@boennemann/github-change-remote-files","version":"1.1.2","description":"create a new commit with a changed file","main":"dist/index.js","scripts":{"build":"rimraf dist && mkdirp dist && babel src --out-dir dist","coverage":"nyc report","coverage:upload":"npm run -s coverage -- --reporter=text-lcov | coveralls","prepublish":"npm run build","pretest:unit":"npm run build && npm run test:build","test":"npm run test:style","test:build":"rimraf .test && mkdirp .test && babel test --out-dir .test","test:style":"standard","test:unit":"nyc tap --no-cov .test/*.js","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"standard":{"parser":"babel-eslint"},"repository":{"type":"git","url":"git+https://github.com/boennemann/github-change-remote-file.git"},"keywords":["git","commit"],"author":{"name":"Stephan Bönnemann","email":"stephan@boennemann.me","url":"http://boennemann.me/"},"license":"MIT","bugs":{"url":"https://github.com/boennemann/github-change-remote-file/issues"},"homepage":"https://github.com/boennemann/github-change-remote-file#readme","devDependencies":{"babel":"^5.8.20","babel-eslint":"^4.0.5","coveralls":"^2.11.3","mkdirp":"^0.5.1","nock":"^2.9.1","nyc":"^3.1.0","rimraf":"^2.4.2","semantic-release":"^4.0.2","standard":"^5.3.1","tap":"^1.3.2"},"dependencies":{"babel-core":"^5.8.20","es6-promisify":"^3.0.0","github":"^0.2.4","lodash":"^3.10.0"},"publishConfig":{"access":"public"},"gitHead":"0773de670e7733c3ed39323ba43590a006d006f8","_id":"@boennemann/github-change-remote-files@1.1.2","_shasum":"7466a5152d78440e012ce0bc129e5c14f0f7fd77","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.2.1","_npmUser":{"name":"boennemann","email":"stephan@boennemann.me"},"dist":{"shasum":"7466a5152d78440e012ce0bc129e5c14f0f7fd77","tarball":"https://registry.npmjs.org/@boennemann/github-change-remote-files/-/github-change-remote-files-1.1.2.tgz","integrity":"sha512-vWuo/sd7g9YCCgwquW5P0gCDALBJtQgc2feaFTx7fdkISiys5mlp39hDIxO5pbmI1w64TwwMpvbJjfgy7Xo4SA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEvLBEdFBHFLpGeLKJ0fsBSvIYmSE3lsgaZobt7nt3h6AiEAzik9dRluYpZykNpwA2DRFaFasLk3vGoKZze2vSgvGvg="}]},"maintainers":[{"name":"boennemann","email":"stephan@boennemann.me"}]}},"readme":"# github-change-remote-file\n\n| [![Build Status](https://travis-ci.org/boennemann/github-change-remote-file.svg?branch=master)](https://travis-ci.org/boennemann/github-change-remote-file) | [![Coverage Status](https://coveralls.io/repos/boennemann/github-change-remote-file/badge.svg?branch=master&service=github)](https://coveralls.io/github/boennemann/github-change-remote-file?branch=master) | [![Dependency Status](https://david-dm.org/boennemann/github-change-remote-file/master.svg)](https://david-dm.org/boennemann/github-change-remote-file/master) | [![devDependency Status](https://david-dm.org/boennemann/github-change-remote-file/master/dev-status.svg)](https://david-dm.org/boennemann/github-change-remote-file/master#info=devDependencies) | [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard) |\n| --- | --- | --- | --- | --- |\n\n_Note: this is a temporary hack because I needed this to work real quick. It will (? should) eventually land [upstream](https://github.com/boennemann/github-change-remote-file)_\n\nThis module allows you to change a single file in a repository on GitHub and create a new commit or pull-request from that change. This has little to no overhead, because it doesn't work with a local copy of the git repository – everything is done via the GitHub API.\n\n## Examples\n\nCreate a new commit:\n\n```js\ngithubChangeRemoteFile({\n  user: 'boennemann',\n  repo: 'animals',\n  filenames: ['.gitattributes', '.editorconfig']\n  transforms: [function (content) {\n    return createNewContent(content)\n  }, function () {\n    return createNewContent(content)\n  }],\n  token: '<github access token with sufficent rights>'\n}, function (err, res) {\n  console.log(res.sha) // sha of the new commit\n})\n```\n\nCreate a new commit and send a PR:\n\n```js\ngithubChangeRemoteFile({\n  user: 'boennemann',\n  repo: 'animals',\n  filenames: ['.gitattributes', '.editorconfig']\n  transforms: [function (content) {\n    return createNewContent(content)\n  }, function () {\n    return createNewContent(content)\n  }],\n  token: '<github access token with sufficent rights>',\n  pr: {\n    title: 'Updated standard to latest version',\n    body: 'whatever'\n  }\n}, function (err, res) {\n  console.log(res.html_url) // url of the pr\n})\n```\n\nCreate a new commit and push it on top of the (master) branch:\n\n```js\ngithubChangeRemoteFile({\n  user: 'boennemann',\n  repo: 'animals',\n  filenames: ['.gitattributes', '.editorconfig']\n  transforms: [function (content) {\n    return createNewContent(content)\n  }, function () {\n    return createNewContent(content)\n  }],\n  token: '<github access token with sufficent rights>',\n  push: true\n}, function (err, res) {\n  console.log(res.object.url) // url of the new commit\n})\n```\n","maintainers":[{"name":"boennemann","email":"stephan@boennemann.me"}],"time":{"modified":"2022-06-12T15:24:15.775Z","created":"2016-01-14T10:33:56.900Z","1.0.0":"2016-01-14T10:33:56.900Z","1.0.1":"2016-01-14T14:26:02.547Z","1.1.0":"2016-01-14T15:01:47.243Z","1.1.1":"2016-01-14T15:17:33.410Z","1.1.2":"2016-01-14T16:06:45.701Z"},"homepage":"https://github.com/boennemann/github-change-remote-file#readme","keywords":["git","commit"],"repository":{"type":"git","url":"git+https://github.com/boennemann/github-change-remote-file.git"},"author":{"name":"Stephan Bönnemann","email":"stephan@boennemann.me","url":"http://boennemann.me/"},"bugs":{"url":"https://github.com/boennemann/github-change-remote-file/issues"},"license":"MIT","readmeFilename":"README.md"}