Skip to content

source-control:pull-request: emit ## Related + closing-keyword skeleton in create flow #487

Description

@kyle-sexton

Lane: work

Triggering example

Issue #462: PRs fail the pr-issue-linkage CI check because nothing scaffolds the required ## Related section + native closing keyword (Closes #N). #462 adds a repo-root .github/pull_request_template.md to cover the web/editor authoring path. This follow-up covers the other half of #462's "and/or": the /source-control:pull-request create flow.

Observed

The create flow assembles a PR body from its own internal template (plugins/source-control/skills/pull-request/reference/create.md §2.4.1). Because gh pr create --body "..." fully overrides .github/pull_request_template.md (cli/cli#10751), agent-driven PRs never see the repo template. The assembled body has ## Summary / ## Test plan but does not scaffold a ## Related section, and the closing keyword is only conditionally present via ${CLOSES_LINE}.

Expected

The create flow should emit a ## Related section and a closing-keyword line as part of its assembled skeleton, mirroring the exact contract enforced by the pr-issue-linkage reusable workflow (non-empty ## Related + native closing keyword or the documented opt-out marker), so agent-authored PRs satisfy the gate without a red-CI round-trip.

Category

improvement

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: highSignificant impact, or blocks an imminent release; staff this cycle.status: readyTriaged, unblocked, and fully specified; eligible to pick up.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions