cli icon indicating copy to clipboard operation
cli copied to clipboard

Repository URL for Azure DevOps in release notes

Open balazsorban44 opened this issue 5 years ago • 0 comments

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

origin  [email protected]:v3/org/project/repo (fetch)
origin  [email protected]: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 avatar Apr 22 '20 18:04 balazsorban44