You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which means "Generate the Python code for the Swagger mentioned in this readme, using autorest for Pyton v4.0.71 or above (but not v5), do not generate async files, generate multiapi if supported (if not ignore), and assume the package was already generated and it's an update"
35
35
36
-
In pratical terms, this is not necessary since the Python SDK has the necessary tooling to simplify to just specify the readme.md:
36
+
In practical terms, this is not necessary since the Python SDK has the necessary tooling to simplify to just specify the readme.md:
if ($line.Trim() -match"^###\s(?<sectionName>.*)")
59
+
{
60
+
$sectionName=$matches["sectionName"].Trim()
61
+
$changeLogEntry.Sections[$sectionName] =@()
62
+
$changeLogEntry.ReleaseContent+=$line
63
+
continue
64
+
}
65
+
66
+
if ($sectionName)
67
+
{
68
+
$changeLogEntry.Sections[$sectionName] +=$line
69
+
}
70
+
56
71
$changeLogEntry.ReleaseContent+=$line
57
72
}
58
73
}
59
74
}
60
75
}
61
76
catch {
62
-
Write-Host"Error parsing Changelog."
63
-
Write-Host$_.Exception.Message
77
+
Write-Error"Error parsing Changelog."
78
+
Write-Error$_
64
79
}
65
80
return$changeLogEntries
66
81
}
@@ -160,6 +175,21 @@ function Confirm-ChangeLogEntry {
160
175
LogError "Entry has no content. Please ensure to provide some content of what changed in this version."
161
176
return$false
162
177
}
178
+
179
+
$emptySections=@()
180
+
foreach ($keyin$changeLogEntry.Sections.Keys)
181
+
{
182
+
$sectionContent=$changeLogEntry.Sections[$key]
183
+
if ([System.String]::IsNullOrWhiteSpace(($sectionContent|Out-String)))
184
+
{
185
+
$emptySections+=$key
186
+
}
187
+
}
188
+
if ($emptySections.Count-gt0)
189
+
{
190
+
LogError "The changelog entry has the following sections with no content ($($emptySections-join', ')). Please ensure to either remove the empty sections or add content to the section."
191
+
return$false
192
+
}
163
193
}
164
194
return$true
165
195
}
@@ -195,9 +225,21 @@ function New-ChangeLogEntry {
0 commit comments