Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
Each release of Versioning, newest first. An entry is dated when its release is cut, and reads *Unreleased* until
then.

## `1.0.0-preview.4`

*Unreleased*

- The promotion check tells a pull request into `main` from `dev` to fast-forward `candidate` to its commit and
promote it from there, in place of opening it against `dev`.

## `1.0.0-preview.3`

*November 5, 2026*
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0-preview.3
1.0.0-preview.4
9 changes: 8 additions & 1 deletion actions/promotion-check/Test-Promotion.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,18 @@ $headRepository = if ($pullRequest.head.repo) { $pullRequest.head.repo.full_name
$results = [System.Collections.Generic.List[object]]::new()

$fromCandidate = $headRepository -ceq $Repository -and $pullRequest.head.ref -ceq 'candidate' -and $pullRequest.base.ref -ceq 'main'
$route = if ($headRepository -ceq $Repository -and $pullRequest.head.ref -ceq 'dev') {
"fast-forward candidate to dev's commit and open the promotion from candidate"
}
else {
'open this pull request against dev'
}

$sourceDetail = if ($fromCandidate) {
"From $($pullRequest.head.label) into main"
}
else {
"From $($pullRequest.head.label) into $($pullRequest.base.ref): main takes this repository's candidate alone, so open this pull request against dev"
"From $($pullRequest.head.label) into $($pullRequest.base.ref): main takes this repository's candidate alone, so $route"
}

$results.Add((New-CheckResult -Check 'Source' -Holds $fromCandidate -Detail $sourceDetail))
Expand Down
Loading