-
Notifications
You must be signed in to change notification settings - Fork 49
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
Configure compare URL and commit URL with Angular preset #695
Comments
@GiamBoscaro I ran into the same issue. All others only provide static "github-style" link generation. E.g see angular-preset for : From my analysis conventionalcommits is a superset of angular. So changing to should be a valid mitigation of the issue. To test create a local commit and run npx semantic-release --dry-run --debug to see the output. |
Hello, thank you for your reply. I am actually trying to test this but it does not work for me. The commits are still generated with the usual wrong urls. My config:
Am I doing something different than you? I have also tried this config here:
and here I the semantic-release just exits without any error while analyzing the commints. Last log is this:
|
@GiamBoscaro interesting, it's not working for you. I work with a .releaserc file:
try to do a local commit
afterwards run |
It is actually working now, I have retried a few times. Don't know exactly what has changed. The substitutions work, but unfortunately the |
I am generating the CHANGELOG for some repositories hosted in an on premise Bitbucket. The compare and commit link are generated wrong.
The
repositoryUrl
parameter is configured as this:https://<host>/git/scm/<project>/<repo>.git
.The commit url should be this:
https://<host>/git/projects/<project>/repos/<repo>/commits/<commit-sha>
The compare url should be this:
https://<host>/git/projects/<project>/repos/<repo>/compare/diff?sourceBranch=refs%2Ftags%2F<current-tag>&targetBranch=refs%2Ftags%2F<previous-tag>
As you can see the links are different from each other and completely different from the ones generated by the preset. One of the reasons (but not the only one) is that the preset is using
repositoryUrl
to generate the links to the commit url and compare url, but therepositoryUrl
used togit pull
andgit push
is completely different from the one that should be for the links.I have seen that for other presets you could use
presetConfig
to configure these links. An example:but these do not seem to work with the angular preset. So is there any way to customize these links?
The text was updated successfully, but these errors were encountered: