Skip revision bump when App.config is unchanged#16073
Conversation
Only bump revision.txt when the VS insertion branch would actually change RocksteadyCLI App.config. This keeps pipeline reruns from creating revision-only commits. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR updates the VS insertion pipeline so reruns do not create revision-only commits when RocksteadyCLI/App.config is already unchanged on the insertion branch.
Changes:
- Fetches the current VS-side
App.configfrom the insertion source branch. - Compares it with the generated vstest
app.config. - Skips the
revision.txtbump and push when the content matches.
|
|
||
| $pushResponse = Invoke-RestMethod -Uri $pushUrl -Headers $headers -Method Post -Body ([System.Text.Encoding]::UTF8.GetBytes($pushBody)) -ContentType 'application/json; charset=utf-8' | ||
| Write-Host "Pushed App.config and revision.txt to insertion branch. Commit: $($pushResponse.commits[0].commitId)" | ||
| if ($currentAppConfigContent -eq $appConfigContent) { |
🤖 Expert vstest review (automated)Small, targeted change to the inline PowerShell in 🛑 BlockersNone.
|
Only bump
revision.txtwhen the VS insertion branch would actually changeRocksteadyCLI/App.config. This keeps pipeline reruns from creating revision-only commits.Verified with
git diff --checkand PowerShell parser on the inline insertion script.