Skip to content

feat: split bounty payouts across PR contributors#29

Open
s3curi7y wants to merge 1 commit into
skndash96:mainfrom
s3curi7y:bounty-12-multi-contributor-payouts
Open

feat: split bounty payouts across PR contributors#29
s3curi7y wants to merge 1 commit into
skndash96:mainfrom
s3curi7y:bounty-12-multi-contributor-payouts

Conversation

@s3curi7y
Copy link
Copy Markdown

Resolves #12.

Summary

This adds multi-contributor payout support for merged bounty PRs. The payout approval flow now derives payout recipients from the primary PR author, commit authors, and Co-authored-by trailers, then splits the bounty amount across the resolved contributors.

Details

  • Added a dedicated payout splitting helper with coverage for contributor deduping, GitHub noreply co-author emails, cent-accurate amount splitting, and single-author fallback.
  • Approval now paginates PR commits before building the contributor set.
  • Payout events are created as PENDING before external payout calls, then updated to SUCCESS or FAILED per recipient.
  • Existing payout events block automatic retry so a maintainer can review partial or ambiguous payout state before any further action.
  • Added a unique payout-event index for (issue_id, lower(recipient_username)) to guard against duplicate payout rows for the same recipient.
  • Kept the existing single-recipient API fields for compatibility and added a payouts array for split payout details.

Validation

  • corepack pnpm test
  • corepack pnpm typecheck
  • git diff --check

Notes

corepack pnpm lint currently reports pre-existing unrelated lint issues in files outside this change. corepack pnpm build compiles successfully but cannot complete prerendering without the required Supabase/App URL environment variables.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 13, 2026

@s3curi7y 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

@s3curi7y 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