Skip to content

feat(github): Add typed pull request creation - #690

Merged
dcramer merged 2 commits into
mainfrom
dcramer/feat/github-create-pull-request-tool
Jun 30, 2026
Merged

dcramer merged 2 commits into
mainfrom
dcramer/feat/github-create-pull-request-tool

Conversation

@dcramer

@dcramer dcramer commented Jun 30, 2026 •

Copy link
Copy Markdown
Member

Add typed GitHub PR creation and route model-visible plugin tools through host-owned namespacing.

GitHub PR creation now uses the GitHub plugin local createPullRequest tool, which sends the provider request through host-owned plugin egress, owns idempotency, and appends the runtime-generated Sentry conversation footer before writing to GitHub.

Core plugin tool registration keeps plugin hook code local and provider-agnostic, then exposes plugin tools to the model with a provider-safe prefixed name:

<pluginNamespace>_<toolName>

For GitHub, the model-facing create tools are:

github_createIssue
github_createPullRequest

The GitHub plugin itself still returns local createIssue and createPullRequest tool keys; Junior applies the prefix at the tools hook boundary to prevent collisions with core tools or other plugins.

Raw sandbox REST and GraphQL issue/PR creation fail before credential injection, so issue and PR bodies go through deterministic runtime-owned paths. GitHub skills, setup docs, public plugin docs, memory/scheduler specs, eval wording, and credential-injection docs are updated to describe the prefixed model-facing tools and the protected write boundary.

Refs GH-660

@vercel

vercel Bot commented Jun 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview, Comment Jun 30, 2026 6:12pm

Request Review

Move GitHub PR creation behind a host-owned createPullRequest tool so Junior can own idempotency and the runtime conversation footer. Deny raw sandbox REST and GraphQL PR creation paths before credentials are issued, and update the GitHub code skill to use the typed tool for new PRs.

Refs GH-660
Co-Authored-By: GPT-5 Codex <[email protected]>
Update memory and scheduler assertions, eval wording, and specs to use the host-prefixed model-facing plugin tool names introduced by the plugin tool namespace change.

Refs GH-660
Co-Authored-By: GPT-5 Codex <[email protected]>
@dcramer
dcramer marked this pull request as ready for review June 30, 2026 18:20
@github-actions github-actions Bot added the risk: high PR risk score: high label Jun 30, 2026
@dcramer
dcramer merged commit b2ff6fb into main Jun 30, 2026
18 checks passed
@dcramer
dcramer deleted the dcramer/feat/github-create-pull-request-tool branch June 30, 2026 18:21

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 6875906e Deployed Jun 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant