Skip to content

feat: link an existing repository to a request claim - #33

Merged
debba merged 1 commit into
mainfrom
feat/link-request-repo
Oct 13, 2026
Merged

debba merged 1 commit into
mainfrom
feat/link-request-repo

Conversation

@debba

@debba debba commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

What

Claimers can now attach a repository they already maintain to their claim, instead of only scaffolding a new one, and pick the scaffold organization from a list.

  • POST /api/requests/:id/repo (linkRequestRepo): body { repoUrl, returnTo? }. Requires a claim on an approved request and maintain/admin on the repository through a linked identity, the same check as submitting a plugin (checkOwnership). repoUrl: null unlinks. Emits the new request.repo_linked webhook event.
  • GET /api/submit/owners (listRepoOwners): the GitHub account first, then its organizations (/user/orgs, covered by the read:org scope already requested at sign-in).
  • MCP: linkRequestRepo under requests:write, listRepoOwners under account:read.
  • Frontend: the scaffold dialog has a "New repository / Link an existing one" switch (URL field with the user's maintained repos as suggestions) and an organization select that falls back to free text. Strings added in all six locales.

Tests

  • New tests/routes/request-repo.test.ts: claim required, link with maintain, refusal without it, unknown host, unlink, owners ordering.
  • bun test: 640 pass. svelte-check and biome clean.

Not included

packages/tabularium-rs/openapi.json is not regenerated.

- POST /api/requests/:id/repo records a repository the claimer maintains
  (same maintain/admin check as submitting a plugin); null unlinks it.
  Emits the new request.repo_linked webhook event.
- GET /api/submit/owners lists the GitHub account and its organizations,
  the valid owners for a scaffolded repository.
- Both are exposed over MCP (linkRequestRepo, listRepoOwners).
- The scaffold dialog gains a "link an existing one" mode and an
  organization select.
@vercel

vercel Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
tabularium-docs Ready Ready Preview Oct 13, 2026 9:29pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
tabularium-website Skipped Skipped Oct 13, 2026 9:29pm UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – tabularium-website October 13, 2026 21:27 Inactive
@debba
debba merged commit e27e54e into main Oct 13, 2026
11 checks passed
@debba
debba deleted the feat/link-request-repo branch October 13, 2026 21:30

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – tabularium-docs — f6e22d37 Deployed Oct 13, 2026 by vercel[bot]
Preview – tabularium-website — f6e22d37 Deployed Oct 13, 2026 by vercel[bot]
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