Sync eng/common directory with azure-sdk-tools for PR 3702 (#3843)

* Add language-service to list of valid sample slugs

* Update link to taxonomies

Co-authored-by: Heath Stewart <heaths@microsoft.com>
This commit is contained in:
Azure SDK Bot 2022-07-19 17:21:08 -07:00 committed by GitHub
parent b95cdcf709
commit 584f83c7bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ process {
Write-Error "File '$($file.FullName)' contains invalid product slug: $product" -TargetObject $file `
-Category InvalidData -CategoryTargetName $product -CategoryTargetType string `
-RecommendedAction 'Use only product slugs listed at https://review.docs.microsoft.com/help/contribute/metadata-taxonomies?branch=master#product'
-RecommendedAction 'Use only product slugs listed at https://review.docs.microsoft.com/help/contribute/metadata-taxonomies?branch=main#product'
}
}
@ -95,7 +95,7 @@ end {
}
begin {
# https://review.docs.microsoft.com/help/contribute/metadata-taxonomies?branch=master#product
# https://review.docs.microsoft.com/help/contribute/metadata-taxonomies?branch=main#product
$productSlugs = @(
"ai-builder",
"aspnet",
@ -358,6 +358,7 @@ begin {
"ef-core",
"ef6",
"expression-studio",
"language-service",
"m365-ems",
"m365-ems-cloud-app-security",
"m365-ems-configuration-manager",
@ -498,7 +499,7 @@ Checks sample markdown files' frontmatter for invalid information.
.DESCRIPTION
Given a collection of markdown files, their frontmatter - if present - is checked for invalid information, including:
Invalid product slugs, i.e. those not listed in https://review.docs.microsoft.com/help/contribute/metadata-taxonomies?branch=master#product.
Invalid product slugs, i.e. those not listed in https://review.docs.microsoft.com/help/contribute/metadata-taxonomies?branch=main#product.
.PARAMETER Path
Specifies the path to an item to search. Wildcards are permitted.