Resolving ArtifactLinks for GitHub
06:33 17 Dec 2025

I'm working with a Microsoft partner and we are using Azure DevOps for day to day work. I'm automating ADO work item GitHub PR & Commit using co-pilot.

Currently in the workitems api provided by ADO, gives the ArtifactLinks in vstfs format in relations section.

GET https://dev.azure.com/{{org}}/{{project}}/_apis/wit/workItems/{{ticketId}}?%24expand=all&api-version=7.1-preview.3

In relations section

{
    "rel": "ArtifactLink",
    "url": "vstfs:///GitHub/Commit/18f27ff9-bc32-hasgdha-grduhd%2fe724kjfghsfbdsnbfdsbfsb26",
    "attributes": {
        "authorizedDate": "2025-11-28T06:55:22.543Z",
        "id": 24727142,
        "resourceCreatedDate": "2025-11-28T06:55:22.543Z",
        "resourceModifiedDate": "2025-11-28T06:55:22.543Z",
        "revisedDate": "9999-01-01T00:00:00Z",
        "name": "GitHub Commit"
    }
}

Since my links are from External GitHub, I'm not able to resolve the vstfs internal url to actual github url.

Please let me know if there is a way to convert the vstfs URIs for GitHub to original URL.

Please note the resolve api works only got GIT tool not GitHub (as in the below example)

Ex: ArtifactLinks from ADO something like this

vstfs:///GitHub/Commit/18f27ff9-bc32-hasgdha-grduhd%2fe724kjfghsfbdsnbfdsbfsb26
ado artifacts workitem