Skip to content
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

Merged
merged 2 commits into from
Oct 22, 2020
Merged

Conversation

oljekechoro
Copy link
Contributor

No description provided.

@@ -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-]+).*$/
Copy link
Member

Choose a reason for hiding this comment

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

orgname too?

Copy link
Contributor Author

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

@codeclimate
Copy link

codeclimate bot commented Oct 22, 2020

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.

@oljekechoro oljekechoro merged commit 7513fa1 into master Oct 22, 2020
@oljekechoro oljekechoro deleted the fix/repo-name-regexp branch October 22, 2020 13:43
qiwibot added a commit that referenced this pull request Oct 22, 2020
## [1.0.4](v1.0.3...v1.0.4) (2020-10-22)

### Bug Fixes

* accept hyphen in reponame regexp ([#19](#19)) ([7513fa1](7513fa1))
@qiwibot
Copy link
Member

qiwibot commented Oct 22, 2020

🎉 This PR is included in version 1.0.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@qiwibot
Copy link
Member

qiwibot commented Oct 29, 2020

🎉 This PR is included in version 1.0.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants