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
Use Version.Details.xml as primary VMR snapshot source
Version.Details.xml's <Source Sha=...> is the authoritative record of
which VMR commit a product repo branch is based on. Previously the script
treated it as a fallback after commit message parsing. Now it's checked
first, with commit messages as secondary confirmation.
This correctly handles:
- Manual backflow (darc vmr backflow pushed directly)
- Normal codeflow (Maestro-managed)
- Conflicted PRs (VD.xml reflects pre-codeflow state)
- Forward flow PRs (skips VD.xml, uses commit messages)
Tested against sdk#52727 (manual backflow) and sdk#52885 (conflicted).
if ($firstMsg-match"^Initial commit for subscription") {
460
-
Write-Host" ℹ️ PR has only an initial subscription commit — PR body snapshot ($(Get-ShortSha$vmrCommit)) not yet verifiable from branch"-ForegroundColor DarkGray
461
-
}
462
-
else {
463
-
Write-Host" ⚠️ No VMR SHA found in branch commit messages — trusting PR body ($(Get-ShortSha$vmrCommit))"-ForegroundColor Yellow
464
-
}
479
+
if ($commitCount-eq1-and$prCommits[0].messageHeadline -match"^Initial commit for subscription") {
480
+
Write-Host" ℹ️ PR has only an initial subscription commit — PR body snapshot ($(Get-ShortSha$vmrCommit)) not yet verifiable"-ForegroundColor DarkGray
465
481
}
466
482
else {
467
-
Write-Host" ⚠️ No VMR SHA found in $commitCount branch commit messages — trusting PR body ($(Get-ShortSha$vmrCommit))"-ForegroundColor Yellow
483
+
Write-Host" ⚠️ Could not verify PR body snapshot ($(Get-ShortSha$vmrCommit)) from branch"-ForegroundColor Yellow
468
484
}
469
485
}
470
486
}
@@ -485,7 +501,11 @@ if ($vmrCommit -and $vmrBranch) {
0 commit comments