mkpr

create pull request by pipeing repository content through filter like sed

Usage no npm install needed!

<script type="module">
  import mkpr from 'https://cdn.skypack.dev/mkpr';
</script>

README

npm License minified size downloads GitHub Issues Build Status Coverage Status

mkpr

create pull request by streaming content through a filter

Currently supports github and bitbucket hosted repositories.

% separates executable args from branch list

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

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

Table of Contents

install

npm install -g mkpr

license

BSD-2-Clause