R211 Unless the repository says otherwise, merge after the required check passes

Off by default

Where a repository’s instructions do not say whether a merge waits for CI, merge only after the required check has passed on the approved head; where they say a merge does not wait, do not merge when the summary job of CI has already failed on the approved head.

Reason

What was approved is that head, and CI passing on it is the ground for saying it works (Art. VII §1(1), Art. VII §3(2)). A repository may choose not to wait, for speed, and that is for the repository to say; where it says nothing, the safe course holds. Even where a merge does not wait, merging after a failure is already in sight is merging a known error.

Verification

A repository’s instructions are its project instructions, such as its AGENTS.md, or the rules it enables. The summary job is the job of CI that sums up the conclusions of all checks, often called check; in a repository that keeps a required check, it is the required check. The duty to read CI on the main branch after a merge is in rule 59, for both kinds of repository.

Violated when a repository does not say that a merge does not wait for CI and the required check had not passed on the approved head when it was merged, or when the repository says a merge does not wait and the summary job had already failed on the approved head when it was merged.

Provisions of the constitution it cites

Relations

Parent
R274 Pull Requests
Requires
none
Conflicts with
none

Metadata

ID
211
Revision
3
Kind
rule
Status
trial
Slug
merge-waits-for-ci-by-default
Default level
project
Constitution revisions
>=1
Check
none
Default
off
Uses
Instructions instructions
Original language
English en
Translations
Chinese zh