# simple-pr

> easy pr mc-pr easy-pr

Latest version **0.2.3** (published 2019-06-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install simple-pr
pnpm add simple-pr
yarn add simple-pr
bun add simple-pr
```

Provides the command `mc-pr`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.3 |
| Published | 2019-06-28 |
| First published | 2019-05-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 6.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | xuanmiao |
| Maintainers | xuanmiaoshuo |

## Links

- npm: https://www.npmjs.com/package/simple-pr
- npm.io page: https://npm.io/package/simple-pr

## Dependencies (4)

- [colors](https://npm.io/package/colors.md) ^1.3.1
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.2
- [commander](https://npm.io/package/commander.md) ^2.16.0
- [shelljs-plugin-open](https://npm.io/package/shelljs-plugin-open.md) ^0.2.0

## Recent versions

- 0.2.3 (latest) — 2019-06-28
- 0.2.2 — 2019-06-28
- 0.2.1 — 2019-06-27
- 0.2.0 — 2019-05-27

## README

# mc-pr

项目提交钩子工具

![meicai logo](http://www.meicai.cn/assets/images/new-img/logo.png)

### 说明

主项目流程包括关键的 review，review 的整个操作比较复杂，需要优化

### 使用规则

```
mnpm install -g @mc/pr-hook

mc-pr init
// 默认将会在mcconf文件夹下建立.pr-hook.json 配置文件，如果重新 init 会有覆盖提示。此文件用来配置对应 git 的项目 id 和默认 pr 分支

mc-pr run
// 执行

// 建议添加到package.json当中，配合git-hoooks
...
"scripts": {
  ...
  "pr": "mc-pr run",
  ...
},
"husky": {
  "hooks": {
    ...
    "post-receive": "npm run test && npm run pr", // 待定
    ...
  }
}
...

```

```
// 默认会按照配置，发起一个从gitUrl项目，基于 sourceId 的当前分支，目标为 targetId ，使用都是当前的分支。

// 用户可以自行设置 source\target\sourceId\targetId 来对默认值进行覆盖

mc-pr run --source develop --target master
mc-pr run -s develop -t master -S 8012 -T 9009

```

---
_Source: https://npm.io/package/simple-pr · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
