mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 22:10:31 +08:00
To determine whether a patch has been merged to the default branch, we tally merges based on the default branch quorum: allow set and threshold. With the introduction of custom branches, the tallying was not updated to use the quorum rules for the target branch, instead merging on the identity document threshold and delegate set. This fix uses the `allow` set and the `threshold` of the most specific rule that matches the target branch of patch. Note that a reference that no rule matches never becomes canonical, so a patch that targets one can never reach a quorum.