Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
saqqdy committed Jul 15, 2021
2 parents db6ca01 + a21049b commit 086b33e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bin/gitm-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ if (publish.args.length > 0) {
}
]
)
if (opt.build) {
if (opt.build && (!level || level < 3)) {
cmd[type] = cmd[type].concat([
{
cmd: `gitm build ${appName} --env bug --app ${opt.build === true ? 'all' : opt.build}`,
Expand All @@ -197,7 +197,7 @@ if (publish.args.length > 0) {
}
}
// 发布release
if (type === 'release' && opt.build) {
if (type === 'release' && opt.build && (!level || level < 3)) {
cmd[type] = cmd[type].concat([
{
cmd: `gitm build ${appName} --env prod --app ${opt.build === true ? 'all' : opt.build}`,
Expand Down
4 changes: 2 additions & 2 deletions bin/gitm-combine.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ program.action(async (type, name, opt) => {
},
`git checkout ${type}/${name}`
])
if (opt.build) {
if (opt.build && (!level || level < 3)) {
cmd = cmd.concat([
{
cmd: `gitm build ${appName} --env dev --app ${opt.build === true ? 'all' : opt.build}`,
Expand Down Expand Up @@ -186,7 +186,7 @@ program.action(async (type, name, opt) => {
)
}
// 仅支持构建bug
if (opt.build) {
if (opt.build && (!level || level < 3)) {
if (type === 'bugfix') {
cmd = cmd.concat([
{
Expand Down
4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2021.07.15 v2.2.4 更新日志

1. 修复无合并权限调起了构建的问题

# 2021.07.04 v2.2.3 更新日志

1. gitm update支持--all一键升级本地所有分支
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gitmars",
"description": "一个高度定制化的git工作流工具",
"version": "2.2.3",
"version": "2.2.4",
"scripts": {
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs",
Expand Down

1 comment on commit 086b33e

@vercel
Copy link

@vercel vercel bot commented on 086b33e Jul 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.