<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Branch-Protection on Tarragon</title><link>https://tarrragon.github.io/blog/tags/branch-protection/</link><description>Recent content in Branch-Protection on Tarragon</description><generator>Hugo -- gohugo.io</generator><language>zh-TW</language><copyright>Tarragon (CC BY 4.0)</copyright><lastBuildDate>Wed, 06 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://tarrragon.github.io/blog/tags/branch-protection/index.xml" rel="self" type="application/rss+xml"/><item><title>Branch Protection</title><link>https://tarrragon.github.io/blog/ci/knowledge-cards/branch-protection/</link><pubDate>Wed, 06 May 2026 00:00:00 +0000</pubDate><guid>https://tarrragon.github.io/blog/ci/knowledge-cards/branch-protection/</guid><description>&lt;p>Branch Protection 的核心概念是「把主線寫入條件制度化」。它把 required checks、review policy 與合併限制集中成 repository gate。&lt;/p>
&lt;h2 id="概念位置">概念位置&lt;/h2>
&lt;p>Branch Protection 位在 pull request 與主線分支之間，屬於 CI workflow 之外的治理層。&lt;/p>
&lt;h2 id="可觀察訊號">可觀察訊號&lt;/h2>
&lt;ul>
&lt;li>主線偶爾進入未驗證變更。&lt;/li>
&lt;li>workflow 已存在但合併條件未綁定。&lt;/li>
&lt;li>團隊需要統一 reviewer 與狀態檢查門檻。&lt;/li>
&lt;/ul>
&lt;h2 id="接近真實服務的例子">接近真實服務的例子&lt;/h2>
&lt;p>專案要求 &lt;code>md-check&lt;/code> 與 &lt;code>Playwright tests&lt;/code> 必須綠燈，且至少一位 reviewer 批准才可合併 &lt;code>main&lt;/code>。&lt;/p>
&lt;h2 id="設計責任">設計責任&lt;/h2>
&lt;p>Branch Protection 要定義必要 checks、審查規則與例外流程，並和 workflow 命名同步維護。&lt;/p></description><content:encoded><![CDATA[<p>Branch Protection 的核心概念是「把主線寫入條件制度化」。它把 required checks、review policy 與合併限制集中成 repository gate。</p>
<h2 id="概念位置">概念位置</h2>
<p>Branch Protection 位在 pull request 與主線分支之間，屬於 CI workflow 之外的治理層。</p>
<h2 id="可觀察訊號">可觀察訊號</h2>
<ul>
<li>主線偶爾進入未驗證變更。</li>
<li>workflow 已存在但合併條件未綁定。</li>
<li>團隊需要統一 reviewer 與狀態檢查門檻。</li>
</ul>
<h2 id="接近真實服務的例子">接近真實服務的例子</h2>
<p>專案要求 <code>md-check</code> 與 <code>Playwright tests</code> 必須綠燈，且至少一位 reviewer 批准才可合併 <code>main</code>。</p>
<h2 id="設計責任">設計責任</h2>
<p>Branch Protection 要定義必要 checks、審查規則與例外流程，並和 workflow 命名同步維護。</p>
]]></content:encoded></item></channel></rss>