Repository navigation
feat(github): Create repositories from operator profiles - #3319
Draft
sentry-junior[bot] wants to merge 4 commits into
Draft
sentry-junior[bot] wants to merge 4 commits into
sentry-junior[bot] wants to merge 4 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
16 screenshot changes — 16 changed · 0 added · 0 removed Review screenshots in Frameshift Show 10 more changed screenshots |
Add the confirm approval mode. Core sends each confirm action to Guardian, and allows it only when an earlier Turn asked about the exact input, a person is the Actor, and Guardian rates their authorization high. An Automation run denies it. Add github_createRepository. It creates organization repositories through host egress with an installation token that has only Repository creation: write. Sandbox egress cannot create repositories. Co-Authored-By: David Cramer <[email protected]>
Drop the confirm approval mode and its core support. github_createRepository uses the default auto mode with write annotations, so Guardian reviews each creation. Stronger always-confirm controls are tracked in #3320. Co-Authored-By: David Cramer <[email protected]>
Repository creation now uses operator-owned repositoryProfiles. A profile fixes the organization and the create settings. The agent picks only the profile, the name, the owning team, and the description. Code checks that the requester's linked GitHub account is an active member of the team, and the team gets access through team_id. Without profiles, the tool is not offered. Co-Authored-By: David Cramer <[email protected]>
sentry-junior
Bot
force-pushed
the
feat/github-create-repository
branch
from
November 14, 2026 00:32
a216e3c to
872417b
Compare
Member
|
im not yet 100% sure how what i want to do here. def wanna give it the capabilities but theres a lot of nuance so holding pattern atm |
This branch was successfully deployed
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.
Junior can now create GitHub organization repositories with
github_createRepository. Every setting comes from an operator-owned repository profile, so each creation is predictable.Profiles
githubPlugin({ repositoryProfiles })defines the kinds of repositories that Junior may create. If no profiles are configured, the tool is not offered. Junior validates the profiles at startup and rejects unknown fields.settingsuses the exact field names ofPOST /orgs/{org}/repos:visibility,has_issues,has_projects,has_wiki,auto_init,gitignore_template,license_template,allow_squash_merge,allow_merge_commit,allow_rebase_merge,allow_auto_merge,squash_merge_commit_title/_message, andmerge_commit_title/_message. A commit message default needs its title default, as GitHub requires. Each profile has exactly oneorg. To use more than one org, define one profile per org.delete_branch_on_mergeis left out on purpose. GitHub documents that only an organization owner can set it to true, and an App installation token is not an org owner.Tool input and membership
profile,name,team(slug), anddescription. The model cannot choose the org, the visibility, or any other setting.PluginToolInputErrorthat asks them to connect GitHub.GET /orgs/{org}/teams/{slug}.activemember of the team:GET /orgs/{org}/teams/{slug}/memberships/{login}. GitHub also counts members of child teams.team_idin the create request. Junior adds no person.automode with write annotations.describeProposalnames the visibility,org/name, the profile, and the team. Stronger always-confirm controls are tracked separately in Require deterministic user confirmation for tool actions #3320.Unchanged
conversationId:toolCallId. The completed result replays, and a 5xx keeps the pending state.POST /orgs/{org}/reposis allowed only with the tool's operation, whose owner must match the URL org. Sandboxgh/curlcreates andPOST /user/reposstay denied.GitHub App permissions
repository_creation: write. This PR does not useAdministration: write, which also allows deleting, transferring, and reconfiguring repositories.GET /orgs/getsentry/teams/engineering/memberships/dcramerreturned 200 through the installation read token, and GitHub reportedX-Accepted-GitHub-Permissions: members=read. These reads use the existing read-only installation token. A members-only token would add no isolation, because the sandbox can already read the same endpoints.getsentry/junior-prodmust configurerepositoryProfiles.Out of scope for v1
POST /repos/{template}/generatecannot setteam_idor the repository settings in the same call. Fixing them afterwards needs Administration.custom_properties. getsentry defines none today (GET /orgs/getsentry/properties/schemareturns[]).Open questions
team_idgive the team at creation? GitHub's docs only say that the team "will be granted access". Would a higher level, such asmaintainoradmin, need a follow-up call that requires Administration? This needs a test on a real org before we depend on it.repository_creation: write(instead of Administration) and the App permission change.via @dcramer.
--
View Session [Sentry]