Skip to content

Add extensions developer GitHub reverify endpoint - #168

Merged
admdly merged 2 commits into
mainfrom
fix/extensions-github
Jul 30, 2026
Merged

Add extensions developer GitHub reverify endpoint#168
admdly merged 2 commits into
mainfrom
fix/extensions-github

Conversation

@admdly

@admdly admdly commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary by cubic

Adds POST /extensions/v2/developers/me/reverify so a developer owner can re-check their GitHub match and updates github_org_verified, github_verification_note, and the new github_verified_at timestamp. Also improves moderator views with owner/claimant context and propagates claim verification onto the developer on approval.

  • New Features

    • POST /extensions/v2/developers/me/reverify: recomputes verification from the caller’s linked GitHub identity, returns the updated DeveloperProfile, 404 if the caller has no profile, 409 if ownership changed mid-request.
    • New developers.github_verified_at field: set on creation, reverify, and when approving a claim; claim verification is copied to the developer during approval.
    • Moderator UX: listAll/listUnapproved include unclaimed, owner_name, and owner_github_login; pending claims include claimant_name and claimant_github_login; history entries include changed_by_name. These fields are omitted from the public schema.
  • Migration

    • Run migration 0015_add_developer_github_verified_at.sql to add developers.github_verified_at.
    • Ensure the external users table/view includes a name column, since moderator queries now select it.

Written for commit af302ed. Summary will update on new commits.

@admdly admdly self-assigned this Jul 30, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 30, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
api af302ed Commit Preview URL

Branch Preview URL
Jul 30 2026, 09:51 AM

@admdly admdly changed the title Add developer GitHub reverify endpoint Add extensions developer GitHub reverify endpoint Jul 30, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 11 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread src/services/extensions/v2/developers-database.ts Outdated
…ookup

A transfer/claim landing between reverifyOwn's initial ownership lookup and
its update could let the write land using the former owner's GitHub
identity after the profile had already changed hands. Re-assert ownership
in the update's WHERE clause (matching upsertOwn's existing pattern) and
return 409 if it affects zero rows.

Claude-Session: https://claude.ai/code/session_014dzTSwUW78Qipx7sYH2dgD

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 3 files (changes from recent commits).

Requires human review: Includes a database migration (adds developers.github_verified_at column). Schema changes require human sign-off.

Re-trigger cubic

@admdly
admdly merged commit aa4fa75 into main Jul 30, 2026
9 checks passed
@admdly
admdly deleted the fix/extensions-github branch July 30, 2026 09:59
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