question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azure DevOps commit URLs are wrong

See original GitHub issue

URLs in the CHANGELOG.md are generated with the following form:

https://dev.azure.com/<org>/<project>/_git/<repo>/commits/<short hash>

=> which gives off a 404 error on the website

when it should probably be:

https://dev.azure.com/<org>/<project>/_git/<repo>/commit/<long hash>

=> which opens up the appropriate commit details page

I have attempted to find where this is configured but I couldn’t find anything meaningful to me.

Note: I am using Lerna to manage version with conventional-commits using the Angular preset.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
HappyHappy1996commented, Sep 14, 2020

For anyone who is struggling with the issue, I was able to get the correct URL adding some config (context) file, for example conventional-changelog-template.js:

module.exports = { // https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-writer // need it to change “commits” to “commit” in changelog body message URL commit: ‘commit’, }

and specifying it when you run “conventional-changelog” command, so something like:

conventional-changelog –context .conventional-changelog-template.js -p angular -i CHANGELOG.md -o CHANGELOG.md

3reactions
kckst8commented, Apr 14, 2020

This issue is closed, but I don’t see the full resolution. The initial issue not only referenced the full commit sha, but also the pluralization in the url:

https://dev.azure.com/<org>/<project>/_git/<repo>/commits/<short hash>

=> which gives off a 404 error on the website

when it should probably be:

https://dev.azure.com/<org>/<project>/_git/<repo>/commit/<long hash>

Is there a way to change this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Workitem Links because of GIT-Commit Messages Wrong!!!
PROBLEM: Azure DevOps then automatically links the code commit from B to work item # 123 in project A. Impact: extreme! Other example:...
Read more >
Azure Devops commit link is incorrect in the interface - SonarCloud ...
I'm using SonarCloud with Azure Devops of my organisation (private project). The various links in the interface (Branches view, Pull requests view…)
Read more >
Azure DevOps: wrong pipeline triggered by git commit
It triggers NewPipeline correctly, and NewPipeline runs without problem. We can reasonably assume that the NewPipeline is configured ...
Read more >
Troubleshoot a GitHub repo connection to an Azure Boards ...
If a GitHub repository is incorrectly connected to the wrong Azure DevOps organization, you'll need to contact the owner of that organization to ......
Read more >
Links in Base URL Fields in Git Repository not Working for Azure
If you are using an Azure repository and the quick links to your git ... the Git Provider field in the repository has...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found