Fix the failing test and open a PR
Point at the broken test. The cause is found and fixed, every test passes again, and you review the change.
What it looks like. One request in, a pull request out.
You ask: Fix the failing checkout test and open a pull request.
- Reproduced the failure in checkout.test.ts
- Found the cause: a stale total when a coupon is removed
- Applied a small fix and re-ran everything
- Tests and build pass
What you get.
- The failure reproduced before anything was changed
- The real cause found: the test, or the code
- A small fix aimed at that cause
- Your full test suite and build passing
- A pull request that explains the diagnosis
At a glance. Is this the right example for you?
- Written for
- Developers with an app on GitHub
- You start from
- Your repository and a change you want made
- You end up with
- A checked pull request, waiting for your review
- The path runs
- Connect → ask → checked → review → merge
- Plan needed
- Pro, for GitHub and pull requests
- Built on
- Sandbox verification · Code intelligence · GitHub PR agent
How it works. Anyone can turn a test green. This finds what actually broke.
Step 1: Connect your repository
One GitHub sign-in. Your branches aren’t touched.
YouStep 2: Name the test, or the symptom
“The checkout total is wrong when a coupon is removed” works too.
YouStep 3: The failure is reproduced
On a safe copy, before anything is changed.
AutomaticStep 4: The real cause is found
Is the test wrong, or the code? It checks rather than guesses.
AutomaticStep 5: A small fix, then everything re-run
Your tests and build pass, and nothing else broke.
AutomaticStep 6: A pull request explains why
The cause, written down, beside the change.
AutomaticStep 7: You review and merge
Your repository changes only when you do.
YouDone for you. The parts of this job you no longer do yourself.
A real fix, not a muted test
The cause is fixed. The test isn’t weakened to make it pass.
A small change
Scoped to the cause, so it is quick to review and easy to undo.
The diagnosis, written down
The pull request says what was wrong, not just what changed.
FAQ. Common questions.
Does it fix the bug or just silence the test?
It reproduces the failure, works out whether the fault is in the test or in the code it covers, and fixes the actual cause. A suite made green by weakening a test is worse than a red one, because it hides the problem.
How do I trust that the suite is really green?
Your own tests and build are re-run against the change, and the pull request only opens once they all pass. A passing run means what it has always meant in your project.
What if I only know the symptom and not which test is red?
Describe the behaviour. Your codebase is read and mapped first, so the relevant test and the code it exercises can be found from what is going wrong.
What happens if it cannot find a fix?
A pull request only opens once your tests and build pass. If it can’t get there, it keeps working on the copy rather than handing you a change that doesn’t hold. You are never asked to review something broken.
Which plan do I need for this?
Connecting a GitHub repository and opening pull requests is a Pro-plan feature, so this needs Pro.
More examples. Five more jobs, followed start to finish.
Connect your app.
Ask for the change in your own words, and review it as a pull request.