No builds for MR heads, so require-checks cannot gate fork MRs #98

closed cmc opened this on 2026-09-03 05:12 UTC · bug ci mr · milestone v1.9.0

Discussion

cmc 2026-09-03 05:12 UTC

QueueBranchBuilds fires only for refs/heads/* pushes to the pushed repository (internal/hookd/hookd.go:200, internal/control/build.go:497). An MR head fetched into refs/merge-requests/N/head never queues a build in the target, so a fork-based MR gets no ci/* status and mr merge under require_checks fails with "none were reported" (mr.go:872). Only same-repo branches get CI.

Remedy: queue builds for MR heads on create and refresh, tagged with the MR number, run without secrets.

closed by commit 882f09f5a0 by cmc: ci: build merge request heads in the target repository

2026-09-03 22:24 UTC