@@ -23,7 +23,7 @@ $repoUrl = $(if ((git -C $Path remote -v) -match "upstream") {
23
23
24
24
# list all tags on this branch ordered by creator date to get the latest, stable or pre-release tag.
25
25
# For stable release we choose only tags without any dash, for pre-release we choose all tags.
26
- $tags = git - C $Path tag - l -- sort= creatordate | Where-Object { $_ -match " v\d+\.\d+\.\d+.*" -and (-not $Stable -or $_ -notlike ' *-*' ) }
26
+ $tags = git - C $Path tag - l -- sort= refname | Where-Object { $_ -match " v\d+\.\d+\.\d+.*" -and (-not $Stable -or $_ -notlike ' *-*' ) }
27
27
28
28
if ($EndWithLatestCommit ) {
29
29
# in CI we don't have the tag yet, so we show changes between the most recent tag, and this commit
@@ -35,6 +35,7 @@ if ($EndWithLatestCommit) {
35
35
else {
36
36
# normally we show changes between the latest two tags
37
37
$start , $end = $tags | Select-Object - Last 2
38
+ Write-Host " $start -- $end "
38
39
$tag = $end
39
40
}
40
41
@@ -95,6 +96,8 @@ $issues = $log | ForEach-Object {
95
96
}
96
97
}
97
98
99
+ $vsixDropBranch = $sourceBranch -replace " rel/" , " "
100
+
98
101
$output = @"
99
102
100
103
See the release notes [here](https://github.com/microsoft/vstest-docs/blob/main/docs/releases.md#$ ( $v -replace ' \.' ) ).
@@ -110,7 +113,7 @@ See full log [here]($repoUrl/compare/$start...$tag)
110
113
111
114
### Drops
112
115
113
- * TestPlatform vsix: [$v ](https://vsdrop.corp.microsoft.com/file/v1/Products/DevDiv/microsoft/vstest/$sourceBranch /$b ;/TestPlatform.vsix)
116
+ * TestPlatform vsix: [$v ](https://vsdrop.corp.microsoft.com/file/v1/Products/DevDiv/microsoft/vstest/$vsixDropBranch /$b ;/TestPlatform.vsix)
114
117
* Microsoft.TestPlatform.ObjectModel : [$v ](https://www.nuget.org/packages/Microsoft.TestPlatform.ObjectModel/$v )
115
118
"@
116
119
0 commit comments