Skip to content

Commit

Permalink
优化取项目名称的逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
saqqdy committed Feb 24, 2022
1 parent 381cfdf commit 9b69cad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/core/git/getGitConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ function getGitConfig(cwd: string = process.cwd()): GitProjectConfigType {
debug('getGitConfig', {
gitUrl,
appName: gitUrl
.replace(/\.git\/?$/, '')
.split('/')
.reverse()[0]
.replace(/\.git$/, '')
})
return {
gitUrl,
appName: gitUrl
.replace(/\.git\/?$/, '')
.split('/')
.reverse()[0]
.replace(/\.git$/, '')
}
}

Expand Down
4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 更新日志

## 2022.02.24 v2.16.6 更新日志

1. 优化取项目名称的逻辑

## 2021.12.27 v2.16.5 更新日志

1. `approve` `review`指令增加`--quiet`,移除`--postmsg`,默认发送消息
Expand Down

1 comment on commit 9b69cad

@vercel
Copy link

@vercel vercel bot commented on 9b69cad Feb 24, 2022

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.