Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync eng/common directory with azure-sdk-tools for PR 3702 #25309

Merged
merged 2 commits into from
Jul 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions eng/common/scripts/Test-SampleMetadata.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}

Expand All @@ -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",
Expand Down Expand Up @@ -358,6 +358,7 @@ begin {
"ef-core",
"ef6",
"expression-studio",
"language-service",
"m365-ems",
"m365-ems-cloud-app-security",
"m365-ems-configuration-manager",
Expand Down Expand Up @@ -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.
Expand Down