<?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: Solehudin</title>
    <description>The latest articles on DEV Community by Solehudin (@solehudin5699).</description>
    <link>https://dev.to/solehudin5699</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%2F3966958%2F43ded70e-7489-4f8d-988b-f1dac6ac4fec.png</url>
      <title>DEV Community: Solehudin</title>
      <link>https://dev.to/solehudin5699</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/solehudin5699"/>
    <language>en</language>
    <item>
      <title>Stop Writing MR/PR Descriptions Manually — Let AI Do It From Your Git Diff</title>
      <dc:creator>Solehudin</dc:creator>
      <pubDate>Fri, 05 Jun 2026 16:04:10 +0000</pubDate>
      <link>https://dev.to/solehudin5699/stop-writing-mrpr-descriptions-manually-let-ai-do-it-from-your-git-diff-4ap9</link>
      <guid>https://dev.to/solehudin5699/stop-writing-mrpr-descriptions-manually-let-ai-do-it-from-your-git-diff-4ap9</guid>
      <description>&lt;h2&gt;
  
  
  The problem I kept ignoring
&lt;/h2&gt;

&lt;p&gt;Every time I opened a merge request, there was this familiar moment of dread. I had just spent hours writing code, and now I had to sit down and summarize it all in a description box. What changed? Why? What should reviewers look at?&lt;/p&gt;

&lt;p&gt;Most of the time I'd write something like &lt;em&gt;"fix login bug"&lt;/em&gt; and call it a day. My teammates did the same. Reviews were slow because nobody knew what to focus on.&lt;/p&gt;

&lt;p&gt;The irony? The git diff already had everything. The AI just needed to read it.&lt;/p&gt;




&lt;h2&gt;
  
  
  Introducing mergist
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;mergist&lt;/strong&gt; is a CLI tool that reads your git diff and generates a structured MR/PR description using AI — automatically in CI, or on-demand from your terminal or browser.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;One command to get started: &lt;code&gt;npx mergist init&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;There are two ways to use it:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. CI mode (recommended for teams)
&lt;/h3&gt;

&lt;p&gt;mergist hooks into your CI pipeline and generates a description every time a MR/PR is opened or a new commit is pushed.&lt;/p&gt;

&lt;p&gt;For &lt;strong&gt;GitLab&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;mergist&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;stage&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;mergist&lt;/span&gt;
  &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;node:20-alpine&lt;/span&gt;
  &lt;span class="na"&gt;rules&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;if&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;$CI_PIPELINE_SOURCE == "merge_request_event"&lt;/span&gt;
  &lt;span class="na"&gt;script&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;npx mergist generate -p gitlab&lt;/span&gt;
  &lt;span class="na"&gt;allow_failure&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For &lt;strong&gt;GitHub Actions&lt;/strong&gt;, &lt;code&gt;npx mergist init&lt;/code&gt; generates the workflow file automatically.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/pcvdgZL06a8"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Manual mode
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Compare two branches and generate description&lt;/span&gt;
npx mergist diff &lt;span class="nt"&gt;-f&lt;/span&gt; feature-branch &lt;span class="nt"&gt;-t&lt;/span&gt; main

&lt;span class="c"&gt;# Or update an existing MR/PR&lt;/span&gt;
npx mergist diff &lt;span class="nt"&gt;-u&lt;/span&gt; https://gitlab.com/org/repo/-/merge_requests/42

&lt;span class="c"&gt;# Launch browser UI&lt;/span&gt;
npx mergist ui
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/oJzqh9cjF1g"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
    &lt;iframe src="https://www.youtube.com/embed/qhQCKskNi4I"&gt;
  &lt;/iframe&gt;

&lt;/h2&gt;

&lt;h2&gt;
  
  
  What the generated description looks like
&lt;/h2&gt;

&lt;p&gt;You can choose which sections to include during &lt;code&gt;init&lt;/code&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Section&lt;/th&gt;
&lt;th&gt;Filled by&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Summary&lt;/td&gt;
&lt;td&gt;AI&lt;/td&gt;
&lt;td&gt;Brief overview of what changed and why&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Changes&lt;/td&gt;
&lt;td&gt;AI&lt;/td&gt;
&lt;td&gt;Bulleted list with Add / Change / Remove prefixes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Review notes&lt;/td&gt;
&lt;td&gt;AI&lt;/td&gt;
&lt;td&gt;Code analysis: risk / warn / suggestion / good&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Testing checklist&lt;/td&gt;
&lt;td&gt;AI&lt;/td&gt;
&lt;td&gt;What to verify before merging&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Notes&lt;/td&gt;
&lt;td&gt;Human&lt;/td&gt;
&lt;td&gt;Left blank — never overwritten by AI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;References&lt;/td&gt;
&lt;td&gt;Human&lt;/td&gt;
&lt;td&gt;Issue/ticket links — also preserved&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  Smart merge — human notes stay untouched
&lt;/h2&gt;

&lt;p&gt;One thing I'm proud of: the &lt;strong&gt;autoUpdate&lt;/strong&gt; feature. When enabled, mergist re-runs on every new commit — but it only rewrites the AI-generated sections. Your manually filled notes and references are never touched. This was critical for team adoption.&lt;/p&gt;




&lt;h2&gt;
  
  
  Multi-provider support
&lt;/h2&gt;

&lt;p&gt;You're not locked into one AI provider. During setup you can choose:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;OpenAI&lt;/strong&gt; — GPT-4o, etc.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Anthropic&lt;/strong&gt; — Claude&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DeepSeek&lt;/strong&gt; — very cost-effective&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Groq&lt;/strong&gt; — fast inference&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custom&lt;/strong&gt; — any OpenAI-compatible endpoint&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Just set &lt;code&gt;AI_API_KEY&lt;/code&gt; in your environment — no code changes needed to switch providers.&lt;/p&gt;




&lt;h2&gt;
  
  
  Platform support
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;GitLab — gitlab.com and self-hosted instances&lt;/li&gt;
&lt;li&gt;GitHub — github.com via GitHub Actions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Output language is also configurable: English (&lt;code&gt;en&lt;/code&gt;) or Indonesian (&lt;code&gt;id&lt;/code&gt;) via &lt;code&gt;.mergistrc&lt;/code&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Try it out
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx mergist init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It'll walk you through selecting a platform, AI provider, CI config, and which sections to include. Takes about 2 minutes.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/solehudin5699/mergist" rel="noopener noreferrer"&gt;https://github.com/solehudin5699/mergist&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;npm: &lt;a href="https://www.npmjs.com/package/mergist" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/mergist&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'd love to hear how it fits into your workflow — especially if you're using self-hosted GitLab or a custom AI endpoint. Drop a comment or open an issue!&lt;/p&gt;

&lt;h2&gt;
  
  
  AI Disclosure
&lt;/h2&gt;

&lt;p&gt;This article was drafted with the assistance of AI and subsequently reviewed, edited, and refined by the author. All technical content, code examples, and implementation details were validated before publication.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>automation</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
