<?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: Ertan EKER</title>
    <description>The latest articles on DEV Community by Ertan EKER (@ertan_eker_8715afd4afe9ab).</description>
    <link>https://dev.to/ertan_eker_8715afd4afe9ab</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3981194%2F60afb8bf-4183-4ced-bd33-b18b6ae1b73c.jpg</url>
      <title>DEV Community: Ertan EKER</title>
      <link>https://dev.to/ertan_eker_8715afd4afe9ab</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ertan_eker_8715afd4afe9ab"/>
    <language>en</language>
    <item>
      <title>I Built an AI Code Reviewer That Asks "What Breaks in Production?"</title>
      <dc:creator>Ertan EKER</dc:creator>
      <pubDate>Fri, 12 Jun 2026 11:50:46 +0000</pubDate>
      <link>https://dev.to/ertan_eker_8715afd4afe9ab/i-built-an-ai-code-reviewer-that-asks-what-breaks-in-production-35le</link>
      <guid>https://dev.to/ertan_eker_8715afd4afe9ab/i-built-an-ai-code-reviewer-that-asks-what-breaks-in-production-35le</guid>
      <description>&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Code review tools are great at catching style issues. Linters catch bugs. But nobody answers the most critical question: &lt;strong&gt;"If I deploy this PR right now, what breaks in production?"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I've been burned by:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A DB column added without a migration → 2 hours downtime&lt;/li&gt;
&lt;li&gt;An API response field renamed → frontend crashed silently&lt;/li&gt;
&lt;li&gt;Express v4 → v5 bump → middleware broke in production&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So I built PR Guardian.&lt;/p&gt;

&lt;h2&gt;
  
  
  What It Does
&lt;/h2&gt;

&lt;p&gt;PR Guardian is a GitHub Action. When you open a PR, it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Parses the diff (language detection, file filtering)&lt;/li&gt;
&lt;li&gt;Analyzes it with AI (DeepSeek, specialized prompts)&lt;/li&gt;
&lt;li&gt;Posts findings as a PR comment with a 1-10 risk score&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What Makes It Different
&lt;/h2&gt;

&lt;p&gt;Every other tool checks &lt;strong&gt;code quality&lt;/strong&gt;. PR Guardian checks &lt;strong&gt;production risk&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Focus&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;SonarQube&lt;/td&gt;
&lt;td&gt;Code quality rules&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CodeRabbit&lt;/td&gt;
&lt;td&gt;Style + basic bugs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sourcery&lt;/td&gt;
&lt;td&gt;Python refactoring&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;PR Guardian&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Production safety&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Real Examples
&lt;/h2&gt;

&lt;p&gt;Last week it caught these in a test PR:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SQL injection via string concatenation → CRITICAL&lt;/li&gt;
&lt;li&gt;Session token in localStorage → CRITICAL (XSS risk)&lt;/li&gt;
&lt;li&gt;Express v5 major version bump → WARNING&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;TypeScript + GitHub Actions SDK&lt;/li&gt;
&lt;li&gt;DeepSeek AI (10x cheaper than GPT-4/Claude)&lt;/li&gt;
&lt;li&gt;Compiled to single JS bundle with ncc&lt;/li&gt;
&lt;li&gt;25 languages, 9 with deep analysis rules&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Add &lt;code&gt;.github/workflows/pr-guardian.yml&lt;/code&gt; to your repo&lt;/li&gt;
&lt;li&gt;Set DEEPSEEK_API_KEY secret&lt;/li&gt;
&lt;li&gt;That's it&lt;/li&gt;
&lt;/ol&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
yaml
- uses: ertaneker/pr-guardian@main
  with:
    github_token: ${{ secrets.GITHUB_TOKEN }}
    deepseek_api_key: ${{ secrets.DEEPSEEK_API_KEY }}

GitHub Repo (https://github.com/ertaneker/pr-guardian) | Docs (https://github.com/ertaneker/pr-guardian/blob/main/docs/USAGE.md)

MIT licensed. Free for open source. Would love your feedback!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>ai</category>
      <category>automation</category>
      <category>githubactions</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
