Skip to main content

ruleset_body

Function ruleset_body 

Source
pub fn ruleset_body(spec: &ProtectionSpec, actions_id: Option<u64>) -> Value
Expand description

The ruleset GitHub is asked for: default branch, PR required, the check required and pinned to the Actions App, no force-push, no deletion, and an empty bypass list.

Public so a client acting as the repository’s own admin (vgi repo init) asks GitHub for exactly the ruleset the bridge would.