-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: accept hyphen in reponame regexp #19
Conversation
src/main/ts/chunks/git.ts
Outdated
@@ -25,7 +25,7 @@ export const getGitInfo: TVcsInfoCreator = (cwd = process.cwd()) => { | |||
: readFileToString(`${gitFolder}${sep}` + rev.slice('ref: '.length)).trim() | |||
|
|||
const repoUrlRegexp = /\turl = (.+)$/ | |||
const repoNameRegexp = /\turl =.+[/:](\w+\/\w+).*$/ | |||
const repoNameRegexp = /\turl =.+[/:](\w+\/[\w-]+).*$/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
orgname too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it already returns orgname too
Code Climate has analyzed commit fdfd9ad and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 98.0%. View more on Code Climate. |
## [1.0.4](v1.0.3...v1.0.4) (2020-10-22) ### Bug Fixes * accept hyphen in reponame regexp ([#19](#19)) ([7513fa1](7513fa1))
🎉 This PR is included in version 1.0.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.0.0 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
No description provided.