Skip to content

docs(site): document target-branches and infer-target-from-checkout-ref for create-pull-request#1449

Merged
jamesadevine merged 1 commit into
mainfrom
docs/create-pr-target-branches-fields-f239222cfb92ad88
Jul 13, 2026
Merged

docs(site): document target-branches and infer-target-from-checkout-ref for create-pull-request#1449
jamesadevine merged 1 commit into
mainfrom
docs/create-pr-target-branches-fields-f239222cfb92ad88

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

Changes

  • site/src/content/docs/reference/safe-outputs.mdx — expanded the create-pull-request configuration options:
    • target-branch description clarified to mention override precedence
    • New target-branches entry with map-syntax example
    • New infer-target-from-checkout-ref entry with semantics, tag-ref warning, and resolution precedence chain

Accuracy checks

  • target_branches: HashMap<String, String> and infer_target_from_checkout_ref: bool confirmed in src/safe_outputs/create_pull_request.rs (CreatePrConfig, lines 404–415)
  • Resolution precedence confirmed in resolve_target_branch() (same file, lines 504–534)
  • Tag-ref compile-time warning confirmed in src/compile/common.rs (warn when infer-target-from-checkout-ref and a checkout repo is at a refs/tags/* ref)
  • Field descriptions aligned with docs/safe-outputs.md (agent-facing docs), which already had these entries

Validation

  • cd site && npm run build:astro — 38 pages built, all internal links valid

Created by the docs-writer workflow.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • cdn.playwright.dev

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "cdn.playwright.dev"

See Network Configuration for more information.

Generated by Docs Writer · 52.3 AIC · ⌖ 9.32 AIC · ⊞ 7.7K ·

…ef fields

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot mentioned this pull request Jul 10, 2026
@jamesadevine jamesadevine marked this pull request as ready for review July 13, 2026 11:06
@jamesadevine jamesadevine merged commit 148a4e1 into main Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant