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

Repository URL for Azure DevOps in release notes #333

Open
balazsorban44 opened this issue Apr 22, 2020 · 0 comments
Open

Repository URL for Azure DevOps in release notes #333

balazsorban44 opened this issue Apr 22, 2020 · 0 comments

Comments

@balazsorban44
Copy link

balazsorban44 commented Apr 22, 2020

My repo is on Azure Repos, and the git remote -v command gives the following:

origin  org@vs-ssh.visualstudio.com:v3/org/project/repo (fetch)
origin  org@vs-ssh.visualstudio.com:v3/org/project/repo (push)

When runnint semantic-release, I generate a CHANGELOD.md with @semantic-release/release-notes-generator and @semantic-release/changelog. The problem is that in the generated notes has the following commit URL format:

https://vs-ssh.visualstudio.com/v3/org/project/repo/commit/commitId

Unfortunately it is a non-working link. Is there a way to somehow tell semantic-release to use https://dev.azure.com/org/project/_git/repo/commit/commitId?refName=refs/heads/develop

I am unsure about the refName bit, it is needed so the PR is shown:
(With refName in the url)
image
(Without refName in the url)
image

What I have tried is to set repositoryUrl in my .releaserc and repository in my package.json to https://dev.azure.com/org/project/_git/repo, but now I am getting Authentication failed.

I also tried setting host to https://dev.azure.com/org/project/_git/repo in https://github.com/semantic-release/release-notes-generator, but this produced the following links:
https://dev.azure.com/org/project/_git/repo/v3/org/project/repo/commit/commitId (notice the duplicates in the url)

I still would like to use ssh, only to produce the release notes with https links. Is it possible?

@balazsorban44 balazsorban44 changed the title Repository URL for Azure DevOps Repository URL for Azure DevOps in release notes Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant