An open API service indexing awesome lists of open source software.

https://github.com/nonacosa/devops_cli_tool


https://github.com/nonacosa/devops_cli_tool

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          

## devops cli 工具


## 如何安装?

```shell
npm install zing-git -g # cnpm install zing-git -g
```

或者 clone 代码,本地安装

```shell
npm install . -g
```

使用:

```shell
zgit --help # zgit -h
```

定期更新,通知大家 update 即可。

## 使用流程

这是一套提交代码规范,使用流程如下:

## 领取 bug 或 需求

```shell
zgit --bug # zgit -b
```
领取 bug

> 如果是第一次使用,需要按提示在 terminal 中粘贴禅道的 Request Header 中的 cookie,或直接在 /usr/local/zingGit-config.json 调整。

```shell
zgit --feature # zgit -f
```
领取需求

> 如果是第一次使用,需要按提示在 terminal 中键入 wekan 的 账号 密码「空格分离」,或直接在 /usr/local/zingGit-config.json 调整。

## 提交

```shell
zgit --commit # zgit -c
```

> 自动从 origin/master checkout 一份按照规范命名的本地分支 eg: fix-bug-11011。

## 合并流程

```shell
zgit --push # zigt -p
```
这个命令做了什么事:

- ① 自动把 fix-bug-11011 推送到 origin

- ② 自动 切换/checkout dev 到本地

- ③ 自动 fetch、pull 代码保证本地 dev 与远程同步

- ④ 自动 merge fix-bug-11011 到 dev

- ⑤ 自动 push dev 到 origin/dev

- ⑥ 手动解决/指派 bug ,等待测试即可

- ⑦ 如果bug被关闭收到邮件通知,手动 merge origin/fix-bug-11011 到 origin/master 即可




## FAQ

- cookie

cookie 「以禅道为例」:要从外网获取:http://39.104.96.233:60888/zentao/ 不要从内网获取

- 功能不好用

可以重新 `npm install zing-git -g` 或 `cnpm install zing-git -g`,升级程序,保证程序最新

- 初始化失败

可能您是 Linux 或 Unix「mac」 等系统,初次执行需要 「sudo」 权限

## TODO

- 自动解决/指派

## 效果

![](http://www.gitrue.com:9000/image/A95FE3D1DCBD16064DF8824783448546.jpg)

![](http://www.gitrue.com:9000/image/A7055320A68EEF852DBA77002AEFBEED.jpg)

![](http://www.gitrue.com:9000/image/92330D317E10D026EC3E1C3EFD7755EB.png)