<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mingyang Li</title>
    <description>The latest articles on DEV Community by Mingyang Li (@mingyangli).</description>
    <link>https://dev.to/mingyangli</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4153163%2F4f7cf521-7ad7-440b-b710-1a1a66c3765f.png</url>
      <title>DEV Community: Mingyang Li</title>
      <link>https://dev.to/mingyangli</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mingyangli"/>
    <language>en</language>
    <item>
      <title>How to Over-Engineer Pull Request Reviews</title>
      <dc:creator>Mingyang Li</dc:creator>
      <pubDate>Sun, 08 Nov 2026 09:19:23 +0000</pubDate>
      <link>https://dev.to/mingyangli/how-to-over-engineer-pull-request-reviews-5345</link>
      <guid>https://dev.to/mingyangli/how-to-over-engineer-pull-request-reviews-5345</guid>
      <description>&lt;p&gt;The phrase "I'm reviewing your pull requests" makes you sound beyond pretentious.&lt;/p&gt;

&lt;p&gt;What do you mean by “reviewing other people's PRs” when most of them are more senior than you?&lt;/p&gt;

&lt;p&gt;I'm just kidding.&lt;/p&gt;

&lt;p&gt;To be fair, I think taking the pressure of "I have to review your PR to decide if your code should go to prod" off your shoulders can make you a lot more productive; it gives you more patience to understand parts of the codebase you haven't touched or seen yet, and it helps you ask better questions rather than nitpicking on syntax. It also helps give you more assurance to verify "these changes are legit, I can take the blame if things go wrong in prod".&lt;/p&gt;

&lt;p&gt;Before reviewing a PR, I usually ask myself:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Should I be reviewing this PR?&lt;/li&gt;
&lt;li&gt;Why is it "me" who should be reviewing this PR?&lt;/li&gt;
&lt;li&gt;Do I have expertise in the stuff I'm about to review?&lt;/li&gt;
&lt;li&gt;What value do I provide other than giving them a green tick?&lt;/li&gt;
&lt;li&gt;Which parts of this PR should I be responsible of reviewing, while I let other experts review stuff that they're good at?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Once I start reviewing a PR, I don't just start reviewing line by line. I have a workflow:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open the repository of the PR locally&lt;/li&gt;
&lt;li&gt;Pull from the latest main branch (or target branch)&lt;/li&gt;
&lt;li&gt;Spin up local development environment - at least!&lt;/li&gt;
&lt;li&gt;Check-out the PR branch in your IDE (I use Cursor) using the VS Code Github extension&lt;/li&gt;
&lt;li&gt;Review the PR diff in your local IDE, not on Github web browser&lt;/li&gt;
&lt;li&gt;To see the latest comments from other reviewers or the author of the PR, open the Github PR web version as a reference&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When I started in the industry, I couldn't wrap my head around how senior engineers could just tell something was off in a PR just by reviewing the diff from the web browser. Turns out, most of them don't review in the browser. They run the PR branch locally where they have full access to the file/folder/repo context.&lt;/p&gt;

&lt;p&gt;Another reason they review locally is that they often need context that is not present in the diff. For example, if you're reviewing a PR to do with an SDK upgrade, the method name and input type for a function may have completely changed. You can see the changes that were made and all of it can make sense; but what you're missing out on is the stuff that they forgot to update. If you happen to be in a team where the codebase has no quality CI checks on PRs, you'll never see what's broken until that PR causes an outage that wakes you at 3am. &lt;/p&gt;

&lt;p&gt;For PRs making updates to system behaviours, being able to run the PR branch locally is essential. You can't approve something you haven't verified to be working as expected. If something happens in prod and people askyou why you approved a change that didn’t work, you have no response. You must be confident in changes you approve.&lt;/p&gt;

&lt;p&gt;For other types of PRs, such as documentation updates, CI workflow edits, config changes, most can be reviewed in the web browser; but it varies depending on the PR.&lt;/p&gt;

&lt;p&gt;Now, let's move onto actually reviewing the PR.&lt;/p&gt;

&lt;p&gt;I often ask myself these questions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;What problem is being addressed? What's the problem statement?&lt;/li&gt;
&lt;li&gt;Why does it have to be addressed now?&lt;/li&gt;
&lt;li&gt;What's the expected wrong behaviour, can I reproduce the issue locally?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;All of these questions should at least be mentioned in the PR description, or a link to a Jira/Linear ticket somewhere. For new feature related PRs, the "why" is more of a question you should've aligned &amp;amp; agreed on wellbefore the sprint (or dev cycle has started), it shouldn't be "new ideas". This isn’t always the case, especially in teams with greater ownership and where moving fast is the guiding principle. In these environments, the question is more about what customer profile this serves, and how it serves them.&lt;/p&gt;

&lt;p&gt;Going deeper, into the technicals (finally), I tend to ask myself these questions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;What's the minimal amount of code changes required to achieve our goal?&lt;/li&gt;
&lt;li&gt;For changes in line x, what happens if we change it to "y", or "z"? What if we leave it unchanged?&lt;/li&gt;
&lt;li&gt;What could be a side-effects of this change? What is the maximum impact if this went wrong in prod?&lt;/li&gt;
&lt;li&gt;Am I nitpicking syntax, coding style, superficial preferences, or am I actually adding value with my comments?&lt;/li&gt;
&lt;li&gt;What are the changes that I'm not a huge fan of, but am okay with approving, knowing that the core changes of this PR already addresses the main problem?&lt;/li&gt;
&lt;li&gt;If the goal is to introduce a hard-coded value (infrastructure configs, environment variables, some magic app-level configs, etc), where does the value come from? Why should I trust it's the right value? What's the decision path we went through to land on the conclusion to use this particular value? Will it ever get outdated sometime down the line? What are the consequences if this value gets outdated?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Sometimes, a single feedback on a PR can become a full-on philosophical discussion about product decisions or design principles. It's important to know when to press the brake, either by moving the thread to another dedicated channel, creating another ticket for a major change in scope, or just commit to the minimal changes in the current PR with an interim solution, while you and the team work on a long-term solution to the flagged issue.&lt;/p&gt;

&lt;p&gt;Reviewing pull requests goes both ways. PR descriptions that tell reviewers how to test the changes are always helpful, though sometimes this knowledge is already shared so it doesn't need to be stated in every PR description. What I do find most helpful is when you state the "wrong past/current behaviours" in PR descriptions, then compare it to the "new/correct behaviours" of your PR, so I know exactly what problem your changes are trying to address.&lt;/p&gt;

&lt;p&gt;In an ideal world, you should ask yourself all of the questions above so that you have 100% confidence approving a PR; but in the real world, no one has absolutely 100% confidence. Sometimes, going with the "vibe" might be the only option, but it's still important to be as exhaustive with reviews as you can.&lt;/p&gt;

</description>
      <category>codereview</category>
      <category>github</category>
      <category>productivity</category>
      <category>softwareengineering</category>
    </item>
  </channel>
</rss>
