When to use it
Use it when a team wants one way of doing code review, or to show a new member what happens after they open a pull request. Automated checks come before people, and comments loop between updating and re-reading until approval.
Make it yours
- Keep the second reviewer decision for core modules; small teams can delete it.
- Put the expected turnaround in a node, such as "First response within one business day".
- If you require a merge method, say so in the last step, such as squash merge.
Mermaid code
flowchart TD
A[Developer finishes and self-tests] --> B[Open a pull request]
B --> C[Automated checks build tests lint]
C --> D{Checks pass}
D -->|No| E[Fix the issues] --> B
D -->|Yes| F[Assign a reviewer]
F --> G[Reviewer reads the change]
G --> H{Changes requested}
H -->|Yes| I[Developer updates and replies]
I --> G
H -->|No| J[Approve]
J --> K{Second reviewer required}
K -->|Yes| F
K -->|No| L[Merge to main]
L --> M[Delete branch and link the issue]Ask an AI for one with this structure
Send the prompt below to ChatGPT or Claude, then paste the whole reply into the editor; the code inside is detected automatically.
Draw a code review flowchart with Mermaid flowchart TD syntax. The developer finishes and self-tests, opens a pull request, and automated checks run; if they fail, fix the issues and resubmit. If they pass, assign a reviewer who reads the change. If changes are requested, the developer updates and replies and the reviewer reads again. If not, approve. If a second reviewer is required, assign again; otherwise merge to main, delete the branch and link the issue. Use diamonds for decisions and no parentheses in node text. Output only the mermaid code block.
FAQ
- How do I show blocking versus optional comments?
Split the decision into two exits, "Must fix" and "Suggestion", and send suggestions straight to approval.
- Can it go into our engineering handbook?
Yes. SVG is the sharpest in documents, or use a share link so everyone opens the current version.
- Can I show how long reviews take?
Add the target to the reviewer node with a line break. Actual durations belong in your metrics dashboard, not on the chart.
More in this category
User Registration Flowchart Template
E-commerce Order Flowchart Template
Customer Complaint Handling Flowchart Template
Incident Response Flowchart Template
Use case diagram template (library system)
IV infusion nursing procedure flowchart template
Patient admission process flowchart template
Nursing shift handover flowchart template
Clinical pathway management flowchart template
Outpatient clinic visit flowchart template
Purchasing and receiving flowchart template
Warehouse order fulfillment flowchart template
Returns and exchanges flowchart template
Hiring and interview process flowchart template
Employee offboarding process flowchart template
Contract approval process flowchart template
Expense reimbursement process flowchart template
IT help desk ticket process flowchart template
Software release process flowchart template
Content moderation process flowchart template
User growth loop flowchart template
Event planning and execution flowchart template
Supplier qualification process flowchart template
Emergency response plan flowchart template
Updated 2026-11-11