Sam pushed two commits to main this morning, and the runs went red. That's CI working: it caught the mistake within minutes of the push, before anyone shipped it.
gh run list shows the newest run first. Read it bottom to top: the first red run after a green one is the commit that broke main. The red runs after it are red only because main was still broken.
You have two ways back to green:
- Fix the code and push the fix, if the fix is quick and clear.
- Revert the commit with
git revert, if it isn't: main goes back to working now, and the change can be fixed and tried again on its own.
bash
git revert --no-edit <commit>
git pushEither way, don't touch the tests to make them pass: they're why you know main broke.
Objectives
- Which commit made main red?
- Make main green again.