-
Notifications
You must be signed in to change notification settings - Fork 798
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
Changelog links are incorrect for selfhosted gitlab (default setup) since 6.0.0 #384
Comments
@escapedcat I believe what you are hitting is how the new You can swap the |
@escapedcat @jbottigliero to me this suggests that |
Sorry for not getting back yet. I'm still up for trying what @jbottigliero suggested and give feedback on this. Will do as soon as I find some time. |
We're seeing the exact same issue. Is there a way to fix this without downgrading to v5.x? |
Upon further inspection, it seems that This used to work (in {
"repository": {
"url": "git@git.mygitlab.sh:groupname/reponame.git"
}
} in the latest {
"repository": {
"url": "https://git.mygitlab.sh/groupname/reponame"
}
} Which isn't nice because we're in fact not allowing http urls for our git origins. |
I notice this happens depending on the git origin url (also self hosted). With
With
|
Same behavior on my side ... |
I have identified the issue. It occurs in this deeply nested NPM dependency: Dependency chain of the issue is:
I actually have no idea where to report this issue since it goes so deep. Essentially, all along the way, a GitHub URL is being assumed. Gitlab allows subgroups and this totally breaks the repository url parsing code. This is not a user issue at all -- the code doesn't even handle the case gracefully. Instead you end up with that triple /// in your CHANGELOG url because the tooling returns a null string in the config needed by
which all are null because of the failure to parse. |
@gabemeola I can confirm that switching from |
I'm also getting this error on a self hosted gitlab instance. Switching the url like @svewag propesed doesn't work. Would be great if someone could take care of it. |
I have the same problem, and updating the URL in package.json didn't solve the problem for me. Is there any new information about the issue? |
We might be running into the same thing. Our DevOps team is needing ssh and it fails for our self hosted. Are there ways around this? |
Hi @kvernon, if you want to fix the links before tagging, you can give arguments to standard-version so that it won't commit and tag new version automatically. After the versioning finishes, you can fix your links, commit and tag yourself. I know it's not a solution but might work as a workaround. |
As a workaround, you can create a file called .versionrc at the root of your project with: {
"types":[
{
"type":"enh",
"section":"Enhancements"
},
{
"type":"feat",
"section":"Features"
},
{
"type":"fix",
"section":"Bug Fixes"
},
{
"type":"test",
"section":"Tests"
},
{
"type":"build",
"section":"Build System"
},
{
"type":"ci",
"hidden":true
},
{
"type":"git",
"hidden":true
}
],
"commitUrlFormat": "https://xxx/yyy/commit/{{hash}}",
"compareUrlFormat": "https://xxx/yyy/compare/{{previousTag}}...{{currentTag}}",
"issueUrlFormat": "https://xxx/yyy/issues/{{id}}",
"userUrlFormat": "https://xxx/gitlab/{{user}}"
} Where xxx is the URL to your gitlab and yyy the path to the project. |
This is not a duplicate of #204. We have standard self-hosted Gitlab server running.
With 5.0.2 we get this output on an fresh repo with
npm init
and addingstandard-version@5.0.2
only:After installing 6.0.0 (or 6.0.1) like this:
We now get broken links:
I know 6.0.0 introduced breaking changes but I couldn't find something related to this after skimming over the commits and changes since 5.0.2.
Do you have any idea or tipps in what direction I could research?
This issue only appears with a self-hosted Gitlab instance. I tried the same with a repo from the public Github and Gitlab services and both work. I'm confused.
Update:
Another thing I noticed. Using
conventional-changelog-cli
the changelog is being generated correctly.CHANGELOG.md
:The text was updated successfully, but these errors were encountered: