Bounty Discovery and Claiming#
On Gitpay, funded GitHub issues carry a monetary bounty that contributors can discover, claim, and receive payment for โ entirely through the gitpay.me platform. This article covers the end-to-end flow: how bounties become discoverable, how contributors find and claim them, and how the backend enforces claim validity.
Task Lifecycle#
Every bounty-backed issue is represented as a Task record whose state field follows a fixed enum sequence:
created โ funded โ claimed โ completed / closed
Supporting timestamps (funded_at, claimed_at) and a claim_retries counter are stored alongside state for auditing . A task is discoverable as an open bounty when state = 'funded' and claimed_at is null.
Discovering Open Bounties#
Entry point โ Explore page:
The primary UI for browsing available bounties is the Explore Issues page at /explore/issues. On mount, it calls listTasks() with pagination parameters and filterTasks({}) to populate the list .
How funded bounties are identified:
The filterTasks() action applies an issuesWithBounties filter that keeps only tasks where parseFloat(task.value) > 0 . The listTasks() action also accepts a hasBounty server-side parameter to pre-filter at the API level .
Account setup required:
Browsing the platform is open, but contributing requires a Gitpay account. The quickest path is signing in with GitHub at gitpay.me, which auto-links GitHub contributions. Contributors must also configure a payout method (Stripe, PayPal, USDC, etc.) before receiving funds .
Checking Claim Status Before Engaging#
Maintainers communicate claim status in issue threads. Common signals:
- Bounty not yet funded: Issues may include a bounty section marked "Not yet, but maybe later" and no linked task .
- Already being worked on: Maintainers reply directly to tell newcomers a contributor has already started and opened a PR: "@gabrielfalcao has already started this one and already opened a PR. Stay in touch for the next ones!" .
- Bounty added by
gitpaybot: When a maintainer funds a task,gitpaybotposts a comment like "GitPay recorded a bounty of 80 usd for this issue. View the task: https://gitpay.me/#/task/1705" . This is the canonical signal that a bounty is funded and the task URL is the authoritative claim target.
Best practice: Before posting a claim inquiry on an issue, check whether gitpaybot has already commented with a funded task link and whether any contributor has announced work or opened a PR for that issue.
The Two-Step Claim Flow#
Claiming a task is a two-step, email-confirmed process:
-
Initial claim request โ the frontend calls
requestClaimTask(taskId, userId, comments, isApproved=false, token, history), which POSTs toPOST /tasks/:id/claim. The backend (requestClaimTaskcontroller) invokesrequestClaim(), which callssendConfirmationEmail()โ generating a JWT and emailing the task owner with an approval link. -
Owner approval โ once the task owner clicks the approval link, the frontend resubmits with
isApproved=trueand the JWT. The backend runsverifyIssueAndClaim(), which validates that the claimant is the GitHub issue owner and matches the task's provider, then callstaskUpdate()to setstate = 'claimed'.
Known action-level bug: The success condition in taskActions.js reads task.status === 200 && !task.data && !task.data.error, which incorrectly rejects valid mail-provider response arrays from src/mail/request.ts โ the !task.data guard short-circuits before task.data.error is evaluated . A fix was submitted in PR #1558.
Claim failure reasons surfaced to the user:
user_is_not_the_ownerโ claimant does not own the linked GitHub issueinvalid_providerโ provider mismatch
Payment and Platform Policy#
All bounty payments are routed exclusively through Gitpay. Off-platform arrangements (direct PayPal, crypto, etc.) are not supported: "we don't make payments outside the platform" . Once a linked PR is merged, the contributor claims the bounty in their Gitpay account and is paid through their configured payout method.
Key Source References#
| Area | File |
|---|---|
| Task model & state enum | src/models/task.ts |
| Claim action (frontend) | frontend/src/actions/taskActions.js |
| Claim route | src/app/routes/tasks.ts |
| Claim controller | src/app/controllers/task.ts |
| Claim business logic | src/modules/tasks/taskClaim.ts |
| Explore issues page | frontend/.../explore-issues-page.tsx |
| Explore Redux container | frontend/.../issue-explorer.ts |