Repository navigation
Build nightly PRs on the open release umbrella - #14967
Open
ArmandPhilippot wants to merge 1 commit into
Open
ArmandPhilippot wants to merge 1 commit into
ArmandPhilippot wants to merge 1 commit into
Conversation
On `main`, the nightly PR repeated changes already in the umbrella until it was merged, and could conflict with them.
|
Preview deployment ✅ Deployment complete!
|
ArmandPhilippot
marked this pull request as ready for review
November 25, 2026 17:43
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description (required)
There is one scenario I hadn’t considered when implementing the release assistant: nightly PRs.
Today, if we merge a CI PR into an umbrella (e.g. #14957), and there is no release before the next day, the nightly workflow creates a new CI PR with the same changes (e.g. #14966). This happens because the workflow compares the generated pages with
main.This behavior is annoying for several reasons:
error-reference.mdx, and so the umbrella wouldn't take it automaticallyWith these changes, when an umbrella is open for its target branch, the nightly now builds on the umbrella branch and opens its PR against it. This means the PR only holds what the umbrella doesn't have yet:
scripts/nightly-base.tsfinds the base, and retargets the open nightly PR when the base changes. Otherwise,create-pull-requestopens a second PR for the new base.delete-branch: truecloses a nightly PR once its base has its changes. The first run should close ci: update error reference docs #14966 that way.I'm not sure if this helpful, but I also added a note to
CONTRIBUTING.md:Opening a PR targeting the umbrella branch directly bypasses the "settled" mechanism. So, theoretically, the CI PR could be for the next version if the docs umbrella hasn't been merged before the nightly workflow runs. I expect most maintainers would do that anyway, but the note says to double check that the changes belong to that release before adding
accepted.Tested on my fork (the logs are under "Find the base of the PR"):
The nightly PR builds on main.,The nightly PR builds on umbrella/main.+Retargeted #95 from main to umbrella/main.,The nightly PR builds on umbrella/main.,The nightly PR builds on main.,The nightly PR builds on main.+Retargeted #97 from umbrella/main to main..