AI Hints
Home›CI/CD with GitHub Actions Tutorial›Reviews, Flaky Tests, and Gates
CI/CD with GitHub Actions · Lesson 73 of 138

Code Review with CI

People and machines.

⏱ 2 min read▶ Video at 1:23:35🎓 Free
Watch this lesson in the CI/CD with GitHub Actions courseWatch on YouTube ↗Full CI/CD with GitHub Actions course

CI and code review work best together. Machines are great at boring checks, like tests, style, and coverage. People are great at the questions machines can't answer. Is this the right design? Is it easy to read?

Code Review with CI
From the video: Code Review with CI
  • Machines: boring checks
  • People: design and clarity
  • Better together

Who checks what

Let CI handle everything that has a clear rule. Formatting, linting, tests, and security scans. That frees reviewers to focus on what matters. Does the change solve the problem, is it simple, and will the next person understand it?

CI checks

  • Formatting and lint
  • Tests and coverage
  • Security scans

Reviewers check

  • Design and naming
  • Edge cases
  • Readability

A good review flow

Open the pull request early, maybe as a draft. Wait for CI to go green before asking for review, so nobody reviews broken code. Keep pull requests small, because small changes get faster, better reviews. And never argue about style in a review. If it matters, add it to the linter.

keyvalue
Draft PRopen early
Green firstthen ask for review
Small PRsfaster reviews
Stylebelongs in the linter

Summary

CI does the rule based checks, and people review the design. Green first, then review. Next, tests that pass and fail at random.

Key takeaways
  • CI: the rules
  • People: the design
  • Small PRs
Next up: Flaky Tests — pass, fail, pass