Commit Statusとは?
commit statusは、外部サービスが特定のcommitに対して投稿する軽量なマーカーで、success、failure、pending、errorのいずれかを、contextラベルとtarget URLとともに報告します。よりリッチなChecks APIより前から存在し、CIや連携で今も広く使われています。branch protectionは、merge前に特定のstatusのcontextが通ることを要求できます。
なぜ重要か
commit statusは、commitが良いか悪いかを示すシステム横断の最も単純なシグナルであり、それゆえ非常に多くのツールが今も発行しています。check runのようなannotationや構造化された詳細はありませんが、その単純さがmergeのゲートに普遍的に使える理由です。
関連する概念
- Checks APIのcheck runより単純
- 各statusはcontextラベルとtarget URLを持つ
- 必須のstatusはbranch protectionでmergeをゲートする
関連ガイド
What Is a Check Run?A check run is a single test or validation reported against a commit, with a status, conclusion, and optional…
What Is a Status Check?A status check is a pass/fail signal a pipeline reports back to a commit or pull request, often required befo…
What Is Branch Protection?Branch protection enforces rules on important branches, like required reviews and status checks, before chang…