Flowchart examples · Engineering

Code review process flowchart

Pull request opened to merged, with automated checks before humans spend time reviewing.

Code review process flowchart

Code review process flowchartNoYesYesNoAuthor opens pullrequestAdd description, testsand screenshotsAutomated checks runChecks green?Author fixesAssign reviewerReviewer reviewsChanges requested?ApproveMerge and delete branchDeploy via pipeline

A worked example to adapt. Rename steps, add branches and owners to match how your team actually works.

Edit the steps to match your process. The free preview (no sign-up) drafts up to 8 main steps; add branches and the remaining steps in the editor.
Mermaid source for this diagram
flowchart TD
  s(["Author opens pull request"])
  desc["Add description, tests and screenshots"]
  ci["Automated checks run"]
  d1{"Checks green?"}
  fix["Author fixes"]
  asg["Assign reviewer"]
  rev["Reviewer reviews"]
  d2{"Changes requested?"}
  app["Approve"]
  merge["Merge and delete branch"]
  e(["Deploy via pipeline"])
  s --> desc
  desc --> ci
  ci --> d1
  d1 -->|No| fix
  fix --> ci
  d1 -->|Yes| asg
  asg --> rev
  rev --> d2
  d2 -->|Yes| fix
  d2 -->|No| app
  app --> merge
  merge --> e

Paste into any Markdown tool that renders Mermaid, such as GitHub.

About this code review process flowchart

A shared code review flow keeps reviews fast and predictable: authors know what to include, reviewers only see changes that already pass automated checks, and the loop for requested changes is explicit.

It pairs with the CI/CD pipeline flowchart, which picks up after merge.

Step by step

  1. Prepare. The author explains what changed and why, with tests.
  2. Automate. Linting, tests and security checks run before review.
  3. Review. A reviewer checks correctness, design and readability.
  4. Iterate. Requested changes loop back through checks.
  5. Merge. Approved changes merge and the branch is deleted.

How to make it in flow-chart.io

  1. Start from the example. Edit the text in the generator box above so it names your own repository rules and checks, then press Generate. The free preview needs no sign-up.
  2. Add the branches. Add the decision points that matter for you, for example two approvals for sensitive code? or design review. Each decision becomes a diamond with labeled outcomes.
  3. Assign owners. Save the diagram to the editor (free account) and rename steps to show who does what: author, reviewer and CI.
  4. Share or export. Share a read-only view link: people with the link can view the diagram but not edit it. Downloads as PNG, SVG or PDF are part of Flow Pro (see pricing).

Tips

Frequently asked questions

What should a code review check?
Correctness, tests, security, readability and whether the change fits the design.
How many reviewers are needed?
Usually one; sensitive areas often require two or a code owner.
Can I generate my own review flow?
Yes. Edit the steps in the generator box and press Generate.

Related

CI/CD pipeline flowchartBug triage process flowchartIT change management process flowchartGit flow diagramsDevOps pipeline diagramsAll flowchart examples

Build it from your own words

Describe your process and get an editable diagram. Free to build and edit; Flow Pro adds downloads and unlimited projects.

Start free See pricing