mkpr
Version:
create pull request by pipeing repository content through filter like sed
51 lines (34 loc) • 2.14 kB
Markdown
[](https://www.npmjs.com/package/mkpr)
[](https://spdx.org/licenses/0BSD.html)
[](https://bundlejs.com/?q=mkpr)
[](https://npmjs.org/package/mkpr)
[](https://github.com/arlac77/mkpr/issues)
[](https://actions-badge.atrox.dev/arlac77/mkpr/goto)
[](https://github.com/prettier/prettier)
[](http://commitizen.github.io/cz-cli/)
[](https://snyk.io/test/github/arlac77/mkpr)
## mkpr
create pull request by streaming content through a filter
Currently supports github and bitbucket hosted repositories.
% separates executable args from branch list
```shell
export AGGREGATION_FACTORY="github-repository-provider" # for github repos
export GITHUB_TOKEN='token providing repositroy write access' # for github repos
mkpr --entries '**/*.json' sed s/a/b/ % myGithubUser/myRepo
```
Create pull request for all package.json entries in the myuser/\_ config \_ repos of github
with the devDependency/config-expander set to ^10.3.2
```shell
export AGGREGATION_FACTORY="github-repository-provider" # for github repos
export GITHUB_TOKEN='token providing repositroy write access' # for github repos
mkpr --entries package.json --jsonpatch '[{"op":"replace","path":"/devDependencies/config-expander","value":"^10.3.2"}]' 'myuser/*config*'
```
# API
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
## Table of Contents
# install
```shell
npm install -g mkpr
```
# license
BSD-2-Clause