Skip to content

Commit d182c4f

Browse files
committed
Skipped files with boiler plate code
1 parent 1f08baf commit d182c4f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tools/ImportExamples.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,12 @@ function Get-ExternalDocsUrl {
185185
Start-WebScrapping -GraphProfile $GraphProfile -ExternalDocUrl $ExternalDocUrl -Command $Command -GraphProfilePath $GraphProfilePath -UriPath $UriPath -Module $Module
186186
}
187187
else {
188-
# This step will still correct the examples if the external docs url is not found
188+
# This step will still correct the examples if the external docs url is not found.
189189
$ExampleFile = "$GraphProfilePath/$Command.md"
190-
Retain-ExistingCorrectExamples -Content (Get-Content $ExampleFile) -File $ExampleFile -CommandPattern $Command
191-
190+
$boilerPlateCode = Select-String -Path $File -Pattern "Add title here"
191+
if ($boilerPlateCode.Length -eq 0){
192+
Retain-ExistingCorrectExamples -Content (Get-Content $ExampleFile) -File $ExampleFile -CommandPattern $Command
193+
}
192194
}
193195
}
194196

0 commit comments

Comments
 (0)