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
Lane: work
Triggering example
Issue #462: PRs fail the
pr-issue-linkageCI check because nothing scaffolds the required## Relatedsection + native closing keyword (Closes #N). #462 adds a repo-root.github/pull_request_template.mdto cover the web/editor authoring path. This follow-up covers the other half of #462's "and/or": the/source-control:pull-requestcreate flow.Observed
The
createflow assembles a PR body from its own internal template (plugins/source-control/skills/pull-request/reference/create.md§2.4.1). Becausegh 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 planbut does not scaffold a## Relatedsection, and the closing keyword is only conditionally present via${CLOSES_LINE}.Expected
The create flow should emit a
## Relatedsection and a closing-keyword line as part of its assembled skeleton, mirroring the exact contract enforced by thepr-issue-linkagereusable 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