diff --git a/eng/common/scripts/Verify-Links.ps1 b/eng/common/scripts/Verify-Links.ps1 index da8eca8c899..b71a8832bd9 100644 --- a/eng/common/scripts/Verify-Links.ps1 +++ b/eng/common/scripts/Verify-Links.ps1 @@ -97,7 +97,7 @@ $ProgressPreference = "SilentlyContinue"; # Disable invoke-webrequest progress d function ProcessLink([System.Uri]$linkUri) { # To help improve performance and rate limiting issues with github links we try to resolve them based on a local clone if one exists. - if (($localGithubClonedRoot -or $localBuildRepoName) -and $linkUri -match '^https://github.com/(?Azure)/(?[^/]+)/(?:blob|tree)/(main|.*_[^/]+|.*/v[^/]+)/(?.*)$') { + if (($localGithubClonedRoot -or $localBuildRepoName) -and $linkUri -match '^https://github.com/(?(Azure|microsoft))/(?[^/]+)/(?:blob|tree)/(main|.*_[^/]+|.*/v[^/]+)/(?.*)$') { if ($localBuildRepoName -eq ($matches['org'] + "/" + $matches['repo'])) { # If the link is to the current repo, use the local build path diff --git a/eng/pipelines/githubio-linkcheck.yml b/eng/pipelines/githubio-linkcheck.yml index 658fe5124a8..0fa8baa0d2d 100644 --- a/eng/pipelines/githubio-linkcheck.yml +++ b/eng/pipelines/githubio-linkcheck.yml @@ -15,21 +15,22 @@ jobs: steps: - pwsh: | $reposToClone = @( - "azure-rest-api-specs", - "azure-sdk", - "azure-sdk-for-android", - "azure-sdk-for-c", - "azure-sdk-for-cpp", - "azure-sdk-for-go", - "azure-sdk-for-ios", - "azure-sdk-for-java", - "azure-sdk-for-js", - "azure-sdk-for-net", - "azure-sdk-for-python", - "azure-sdk-for-rust" + "Azure/azure-rest-api-specs", + "Azure/azure-sdk", + "Azure/azure-sdk-for-android", + "Azure/azure-sdk-for-c", + "Azure/azure-sdk-for-cpp", + "Azure/azure-sdk-for-go", + "Azure/azure-sdk-for-ios", + "Azure/azure-sdk-for-java", + "Azure/azure-sdk-for-js", + "Azure/azure-sdk-for-net", + "Azure/azure-sdk-for-python", + "Azure/azure-sdk-for-rust", + "microsoft/mcp" ) foreach ($repo in $reposToClone) { - git clone https://github.com/Azure/${repo}.git --depth 1 --single-branch --branch main + git clone https://github.com/${repo}.git --depth 1 --single-branch --branch main } workingDirectory: $(Pipeline.Workspace)