All posts

AI Can Open the Pull Request. Who Gets Paid?

AI agents can now turn an issue into a pull request in minutes. Here's how pull request automation changes open source bounties, what still needs a developer, and how Gitpay decides who gets paid.

Label an issue, wait a few minutes, and a pull request appears. That’s not a demo anymore. Coding agents can read an issue, find the relevant files, write a change and open a pull request, sometimes before a maintainer has finished their coffee.

So if a bot can do it, why pay a developer a bounty?

Because opening a pull request was never the hard part.

What pull request automation does well

We run this experiment on Gitpay’s own repository. Add the AIPR, AutoPR or Code Generation label to an issue, and a GitHub Actions workflow asks a model to draft a pull request for it.

For small, well-described issues, the drafts are often a useful start:

  • a typo or copy change across a few files;
  • a missing translation key;
  • a small refactor with a clear pattern to follow;
  • the first version of a test.

The common thread: the issue already says exactly what done looks like, and the change is small enough to check at a glance.

Where it stops

Most issues worth a bounty aren’t like that. They need someone to decide which fix is right, not just produce a fix. Left on its own, an automated draft tends to:

  • solve the issue as written, and miss the case the issue didn’t mention;
  • pass the tests that exist, and break behaviour no test covers;
  • look plausible in a diff, and fail when you actually run the app;
  • go quiet when a reviewer asks “why this approach?”.

None of that is a reason to avoid AI. It’s a reason to put a person in charge of the result.

The rule that keeps bounties fair

Gitpay pays a bounty to the GitHub account that authored the merged pull request. Before paying, it checks on GitHub that the person claiming the bounty opened the pull request, that it was merged into the issue’s repository, that it references the issue, and that the issue is closed.

A draft opened by github-actions[bot] has no person behind it, so it can’t claim anything. That’s deliberate. The money goes to whoever takes the draft (or starts from scratch), makes it right, tests it, answers the review, and opens the pull request from their own account.

Developers can use any tool they like, AI agents included. They just have to own the outcome.

What this means for maintainers

AI makes pull requests cheap to open, so review becomes the bottleneck. On Gitpay, merging is the approval, so a few habits matter more than ever:

  1. Write issues with acceptance criteria and a test plan. They help agents and people, and make a wrong pull request easy to spot.
  2. Add an AGENTS.md to your repository with how to build, test and lint. Better context, better pull requests.
  3. Review AI-written pull requests like any other. Run them. Ask the author to explain anything unclear.
  4. Use automation for drafts, and bounties for outcomes. Let a bot take the first pass on a small issue. Put a bounty on the issues where you need someone to get it right.

A bounty is how you pay for the part an agent can’t do: judgment, testing against real use, iteration and accountability. And you only pay when the work is merged.

What this means for contributors

If you solve bounties, AI is a real advantage, used well:

  • read the issue and the project’s contribution guide yourself first;
  • give your agent the repository’s AGENTS.md or CLAUDE.md;
  • run the tests and the app locally;
  • review every line, and cut what you can’t explain;
  • write the pull request description yourself, with Fixes #123;
  • open it from the GitHub account connected to Gitpay.

One reviewed pull request beats five fast ones. Maintainers see every solution sent on an issue, and they remember who sends work they can merge.

The short version

AI can open the pull request. A developer gets paid for making it right. That’s how bounties work on Gitpay, and it’s why they still make sense when half the code is written by a model.

Read the full guide: Working with AI.

Get started as a contributorCreate a payment link in minutes, or fund an issue and pay contributors when their work is merged.
Read the guide