docs(site): document target-branches and infer-target-from-checkout-ref for create-pull-request#1449
Merged
jamesadevine merged 1 commit intoJul 13, 2026
Conversation
…ef fields Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Open
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.
Summary
target-branchesandinfer-target-from-checkout-reffields introduced in feat(compile): decouple create-pull-request diff base from checkout depth #1425 were referenced in a prose paragraph but absent from the Configuration options list.Changes
site/src/content/docs/reference/safe-outputs.mdx— expanded thecreate-pull-requestconfiguration options:target-branchdescription clarified to mention override precedencetarget-branchesentry with map-syntax exampleinfer-target-from-checkout-refentry with semantics, tag-ref warning, and resolution precedence chainAccuracy checks
target_branches: HashMap<String, String>andinfer_target_from_checkout_ref: boolconfirmed insrc/safe_outputs/create_pull_request.rs(CreatePrConfig, lines 404–415)resolve_target_branch()(same file, lines 504–534)src/compile/common.rs(warn wheninfer-target-from-checkout-refand a checkout repo is at arefs/tags/*ref)docs/safe-outputs.md(agent-facing docs), which already had these entriesValidation
cd site && npm run build:astro— 38 pages built, all internal links validCreated by the docs-writer workflow.
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
cdn.playwright.devSee Network Configuration for more information.