Skip to content

Wrong URL to VSTS work item when using hash work item id in commit #372

@Episodex

Description

@Episodex

I'm using work items ids as hashes in commit to automatically link commits to work items in VSTS. For example commit message: initial commit #101 will link this commit to work item number 101 in VSTS. GitLens will correctly parse this hash and will make it clickable in the commit details popup. But it goes to wrong url. The url GitLens redirects to is:

https://example.visualstudio.com/_git/MyProject/_workitems/edit/101

which gives 404, as the correct url is:

https://example.visualstudio.com/MyProject/_workitems/edit/101 (notice _git removed).

I couldn't find any way to configure base address for work items in GitLens config. Is there something wrong with my VSTS configuration or is it some kind of a bug in the extension?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions