<?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>Required-Checks on Tarragon</title><link>https://tarrragon.github.io/blog/tags/required-checks/</link><description>Recent content in Required-Checks 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/required-checks/index.xml" rel="self" type="application/rss+xml"/><item><title>Required Checks</title><link>https://tarrragon.github.io/blog/ci/knowledge-cards/required-checks/</link><pubDate>Wed, 06 May 2026 00:00:00 +0000</pubDate><guid>https://tarrragon.github.io/blog/ci/knowledge-cards/required-checks/</guid><description>&lt;p>Required Checks 的核心概念是「把合併條件綁定到檢查結果」。它讓主線保護不依賴人工記憶，而依賴可觀測狀態。&lt;/p>
&lt;h2 id="概念位置">概念位置&lt;/h2>
&lt;p>Required Checks 位在 repository branch protection，連接 pull request 與 CI workflow 結果。&lt;/p>
&lt;h2 id="可觀察訊號">可觀察訊號&lt;/h2>
&lt;ul>
&lt;li>PR 是否可合併取決於特定 checks 狀態。&lt;/li>
&lt;li>團隊需要確保高風險變更不繞過驗證。&lt;/li>
&lt;li>CI workflow 增刪後需要同步調整合併條件。&lt;/li>
&lt;/ul>
&lt;h2 id="接近真實服務的例子">接近真實服務的例子&lt;/h2>
&lt;p>專案可要求 &lt;code>md-check&lt;/code> 與 &lt;code>Playwright tests&lt;/code> 都通過才能合併 &lt;code>main&lt;/code>。若只跑 workflow 但未設為 required，主線仍可能進入紅燈變更。&lt;/p>
&lt;h2 id="設計責任">設計責任&lt;/h2>
&lt;p>Required Checks 要定義必要檢查集合、擁有者與變更流程，並和 workflow 命名保持一致。&lt;/p></description><content:encoded><![CDATA[<p>Required Checks 的核心概念是「把合併條件綁定到檢查結果」。它讓主線保護不依賴人工記憶，而依賴可觀測狀態。</p>
<h2 id="概念位置">概念位置</h2>
<p>Required Checks 位在 repository branch protection，連接 pull request 與 CI workflow 結果。</p>
<h2 id="可觀察訊號">可觀察訊號</h2>
<ul>
<li>PR 是否可合併取決於特定 checks 狀態。</li>
<li>團隊需要確保高風險變更不繞過驗證。</li>
<li>CI workflow 增刪後需要同步調整合併條件。</li>
</ul>
<h2 id="接近真實服務的例子">接近真實服務的例子</h2>
<p>專案可要求 <code>md-check</code> 與 <code>Playwright tests</code> 都通過才能合併 <code>main</code>。若只跑 workflow 但未設為 required，主線仍可能進入紅燈變更。</p>
<h2 id="設計責任">設計責任</h2>
<p>Required Checks 要定義必要檢查集合、擁有者與變更流程，並和 workflow 命名保持一致。</p>
]]></content:encoded></item></channel></rss>