pub fn ruleset_satisfies(
ruleset: &Value,
default_branch: Option<&str>,
actions_id: Option<u64>,
spec: &ProtectionSpec,
) -> Result<bool>Expand description
Whether ruleset — GitHub’s JSON for one repository ruleset, as GET /repos/{owner}/{repo}/rulesets/{id} returns it — already enforces spec
on a repository whose default branch is default_branch, with the
required check pinned to actions_id. The same test the adapter runs
before it rewrites its managed ruleset, so a client that converges on it
leaves a ruleset alone exactly when the bridge would.