Pull requests
Follow a GitHub repository's pull requests, check one out as a task, open one from a task, and have the agent fix its failing checks.
Follow a GitHub repository's pull requests, check one out as a task, open one from a task, and have the agent fix its failing checks.
When your project is connected to a GitHub repository (see Source Control), you can follow the repository’s pull requests in two places:
Both show the same list and pages. You can read a pull request the way you would on GitHub, run it as a task with its own copy of the app, and have that task’s agent fix its failing checks. It works the other way too: a task’s work can become a new pull request.
OneDrop reads GitHub with the same connection it pushes with: the GitHub App, or the access token you connected with. Your access token never goes into the sandbox.
The list shows the open pull requests, the most recently changed first. Switch to Closed for closed and merged ones, or search by title, number, branch or author. Each row shows:
Click a pull request to open its page. The address keeps it and its tab (?pr=12&pr_tab=files), so a reload or a shared link opens it again. In Tools, switching to the Preview or another tab and back also brings back the same pull request and tab. At the top are its state, who opened it, its branches, its size, whether it has conflicts with the branch it goes into, and Open on GitHub. Below, four tabs:
| Tab | What it shows |
|---|---|
| Conversation | The description, then comments, reviews and comments on lines, oldest first. |
| Commits | Each commit’s message, author and when, with a link to it on GitHub. |
| Files changed | Each file with lines added and removed. Click one to see its diff. GitHub leaves out the diff of very large files; open those on GitHub. |
| Checks | Each check and commit status on the newest commit, how long it took, and a link to its details. Click a failed check to see the end of its log. |
While any check is still running, the page looks again every 15 seconds.
You can also name a branch or pull request in the chat, such as “check out the billing-v2 branch” or “check out PR #42 and see why the login test fails”. The sandbox’s repository has your remote as origin, with every branch and tag already brought in, so the agent uses git the way it would in a clone: git switch, git fetch origin pull/42/head, or gh pr checkout 42. The preview switches with the branch. If you have uncommitted changes, the agent asks before switching.
This works on Main or in any task. To run a pull request beside Main instead, check it out as a task (below).
For a repository connected through the GitHub App, git asks OneDrop for a token whenever it needs one. The token can only read that one repository and its pull requests, and expires after an hour. It isn’t saved in your project. The agent can’t push with it; your work still reaches GitHub through Push in Source Control.
With a repository connected with an access token (GitLab, or Other git host), your token stays out of the sandbox. Public repositories still fetch. For a private one, the agent asks you to Pull in Source Control, which brings in every branch.
Click Check out as task. OneDrop starts a task named after the pull request, such as “#12 Fix login”, and gives it a fresh sandbox with the pull request’s branch at its newest commit. Nothing comes from Main: the app sets itself up as it does after an import (its .onedrop/dev installs dependencies and starts its services), so its databases start as the app makes them, not with Main’s data. The agent doesn’t start. The task’s preview, files, shell and tools now show the pull request’s code, so you can try it before you review it. Main isn’t touched.
A pull request is checked out once. After that, its button says Open task.
The task’s page shows the pull request where other tasks show Apply to Main:
| Control | What it does |
|---|---|
| #12 | Opens the pull request’s page in Tools. |
| Changes | Opens everything the task changed against the pull request’s base in the Changes tab, unpushed work included. |
| Pull | Brings in commits pushed to the pull request since. They’re merged in, and the task’s agent resolves conflicts and installs what changed. |
| Push | Commits what changed in the task’s copy and pushes it to the pull request’s branch. |
| Push after each turn | On by default: when the agent finishes a turn, its work is pushed to the pull request. |
| Fix failing checks automatically | Off by default. See below. |
Ask the task’s agent for changes the same way as in any chat. It works on the pull request’s branch, and its work reaches GitHub through Push, since the agent can’t push itself.
OneDrop never force-pushes. If someone pushed to the pull request in the meantime, the push fails and the task says to pull first.
A pull request from a fork runs in its task, but can’t be pushed to: OneDrop can only write to your repository.
Checking out needs tasks to get their own copy of the app. On an install where that’s turned off, the button says why.
Any task with its own copy of the app can become a pull request:
onedrop/task-14-add-dark-mode. It never force-pushes. The bar says Pushing to GitHub….To send newer work before you create the pull request, click Push again. It goes to the same branch.
OneDrop opens GitHub’s page rather than creating the pull request itself, so the GitHub App only needs read access to pull requests.
When a pull request is merged or closed on GitHub, its task moves to Done and its chat says “#12 was merged on GitHub” (or closed). Its card on the board shows Merged or Closed, and Push and Pull are turned off. OneDrop notices when you open the Pull requests list, and a moment after you open the board or the task.
The task is moved only once: if you drag it back out of Done, it stays where you put it.
Every pull request gets a running copy of the app with its changes, and a link anyone can click to try it. Reviewers don’t need a OneDrop account: the link is on the pull request itself.
Previews are off until you turn them on, for each project. Pick what to preview with Preview above the list on the Pull requests page or in Tools → Pull requests:
| Choice | What’s checked out by itself |
|---|---|
| No pull requests | Nothing. Check pull requests out by hand. |
| New pull requests | Only pull requests opened after you chose it. The ones already open are left alone. |
| Every pull request | Every open pull request, starting with the ones open now. |
While previews are on:
Pull requests from forks aren’t checked out on their own, because a preview runs its code next to your organization’s secrets. Check them out by hand once you’ve read them.
If the project already runs as many task copies as it’s allowed, new pull requests wait for a free copy, and their page says so.
Each preview has its own address that doesn’t change while the pull request is open, such as pr-12-shop-48.onedrop.dev. The link to open it includes a key: anyone who has the link can open the app, without signing in, for 12 hours per visit.
The link is posted on the pull request. On a public repository, that means anyone can open the preview. Previews run on a copy of the project’s Main data, not production’s, so think about what Main’s database holds.
On the task’s bar, Preview opens it, Copy link copies it, and New link makes a new one. The old link stops working at once, for everyone, and the pull request gets the new one.
OneDrop shows each preview on its pull request in two places:
This needs the GitHub App’s Deployments and Pull requests write permissions (see GitHub App). If GitHub refuses, the preview still works, and the task’s bar says why GitHub didn’t show it.
When a check fails, click Fix failing checks on the pull request’s page. The names of the failed checks and the end of their logs go to the pull request’s task (it’s checked out first if it has none), asking its agent to find and fix the cause. When its turn ends, the fix is pushed and the checks run again.
To keep going without you, turn on Fix failing checks automatically on the task. After each push, OneDrop watches the checks. When they fail, it sends them to the agent the same way. If 3 tries in a row don’t make them pass, it stops and says so in the task’s chat; passing checks start the count again.
After each push, the task’s chat says how the checks went, such as “Checks passed on 3f2a1c9” or “2 checks failed on 3f2a1c9”, and the task’s card on the board shows them too.
The agent is asked to fix the code, not the checks: it doesn’t skip, delete or loosen tests, or add sleeps or longer timeouts. If a check fails for a reason outside the code, such as a missing secret, it says so instead of changing anything.
Review comments, from Copilot or from people, show on a pull request’s page under Conversation. Each thread shows its file and line, the code it’s on, and its comments. Threads waiting on someone come first. A thread is waiting while it’s unresolved and its newest comment isn’t OneDrop’s own reply. Resolved threads are hidden behind Show N resolved. In the list, each pull request shows how many review comments are unresolved, so one whose checks all pass but still has open comments doesn’t look done.
Click Address N comments to send every waiting thread to the pull request’s task. If it has no task yet, it’s checked out first. To send only some threads, untick the others and click Address above them. The agent reads each one and:
When its turn ends, the fixes are pushed (with Push after each turn on), and what the agent said about each thread shows under it as a reply you haven’t posted yet. Edit it if you like, then Post reply. Posting a fix replies on the thread with the commit it’s in, such as “Fixed in 3f2a1c9”, and resolves the thread. Posting a declined reply only replies, so the reviewer can answer. A question for you also shows in the task’s chat. Discard throws a reply away.
The agent never posts or resolves anything on GitHub itself. OneDrop’s GitHub App does it once you post.
Turn on Post the agent’s replies without asking on the Pull requests page to skip the drafts. Declined replies then post as soon as the turn ends, and fixes post once they’re pushed. Questions are never posted.
When a comment has a GitHub suggestion, click Apply suggestion on a pull request checked out as a task. The suggested lines replace the original ones in the task’s copy, with no agent involved. The change is pushed, and the thread gets “Applied in …” and is resolved. If those lines changed since the suggestion was made, OneDrop doesn’t apply it and asks you to have the agent address it instead.
You can also Reply on a thread, and Resolve or Unresolve it, from its page. OneDrop’s GitHub App posts your reply, signed with your name.
On the Pull requests page, Address review comments chooses whose comments go to the agent by themselves when a review is submitted:
| Choice | What goes to the agent |
|---|---|
| Only when asked (default) | Nothing, until you click Address comments. |
| From bots | Threads from Copilot and other review bots. |
| From bots and people who can push | Also threads from the repository’s owners, members and collaborators. |
A thread goes by itself only when every comment in it is from someone on that list. Anyone else’s comment could try to steer the agent while it runs next to your organization’s secrets, so those threads wait for you to choose them. When you click Address comments, every thread you pick is sent.
New pull request tasks take the project’s choice as Address review comments automatically on their bar, which you can turn on or off for each task. Turning it on sends what’s already waiting. A review on a pull request without a task checks it out first, except for pull requests from forks.
A thread isn’t sent again until someone comments on it again. If 3 reviews in a row each send the agent more to do, it stops and says so in the task’s chat. A review with nothing left waiting starts the count over, and so does turning the switch on again or clicking Address comments.
OneDrop doesn’t ask Copilot to review again after a push. To have Copilot review each push, turn on Review new pushes in the repository’s Copilot code review settings on GitHub.
Bringing in new commits and fixing failing checks run without you, so a signed-out AI shouldn’t hold them up. If the task’s agent can’t run one of them because your Claude or ChatGPT sign-in has run out, it runs on your organization’s AI credits instead, on OpenCode with DeepSeek Flash. The task’s chat says so and names the model, and the Usage page shows the run as paid by AI credits. A hand-off costs a cent or two.
That run is a conversation of its own: the task’s own agent keeps its conversation, and your next message goes back to it. Messages you send yourself never move to AI credits; they wait until you sign in again. Where AI credits are off, or none are left, the work waits for your sign-in too.
With the GitHub App, its admin gives it the Pull requests, Checks, Commit statuses and Actions read permissions (see GitHub App); admins see in Source Control which are missing. Replying to review comments and resolving them needs Pull requests: Read and write, and addressing them as reviews arrive needs the app’s webhook subscribed to the Pull request review event. With an access token, the token needs the same read access to the repository. When GitHub refuses, the section says which permission it needs.