Skip to content

feat: split bounty payouts across PR contributors#31

Open
ryanll wants to merge 1 commit into
skndash96:mainfrom
ryanll:codex-multi-contributor-payouts-paginated
Open

feat: split bounty payouts across PR contributors#31
ryanll wants to merge 1 commit into
skndash96:mainfrom
ryanll:codex-multi-contributor-payouts-paginated

Conversation

@ryanll
Copy link
Copy Markdown

@ryanll ryanll commented May 13, 2026

Summary

  • derive payout recipients from the merged PR author plus all paginated PR commit authors/committers and co-author trailers
  • split the bounty amount evenly by cents across unique contributors
  • persist payout and activity events per recipient while keeping the existing single-recipient response fields compatible
  • show a split-payout success message in the maintainer approval UI

Fixes #12.

Notes

This preserves current single-recipient behavior when only one contributor is found. For split payouts, the primary PR author still supports PR-body wallet extraction; additional contributors resolve through the connected GitHub account/email path or fall back to the existing unclaimed payout notification.

Unlike implementations that only fetch the first page of PR commits, this uses Octokit pagination so contributors are not missed on larger PRs.

Verification

  • ./node_modules/.bin/tsc --noEmit
  • ./node_modules/.bin/eslint 'app/b/[owner]/[repo]/issues/[issueNumber]/approve-button.tsx' lib/api/client.ts lib/bounty/services/approve-payout.ts lib/bounty/payout-recipients.ts
  • git diff --cached --check

@vercel
Copy link
Copy Markdown

vercel Bot commented May 13, 2026

@ryanll is attempting to deploy a commit to the skndash96's projects Team on Vercel.

A member of the Team first needs to authorize it.

@bountic-bot
Copy link
Copy Markdown

bountic-bot Bot commented May 13, 2026

⚡️ Bounty Competition Started

@ryanll has submitted a PR that references an issue with a bounty. Learn more about this bounty: https://bountic.vercel.app/b/skndash96/bountic/issues/12

When this PR is merged, the bounty will be locked and ready for payout approval.


Bountic: Autonomous USDC bounties for open source

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.

Feature Request: Multiple PR contributors payout distribution

1 participant