gluecron_get_branch_protection
Read the branch-protection rule that applies to a branch (exact name or the glob that covers it): required checks, require_pr_run, required approvals, AI / human review, green gates, force-push / deletion, auto-merge; plus merge_train {on, batch_max, effective_batch_max, host_ceiling} — whether the merge train runs for the repository and how many armed PRs it tests together. Read-only. Returns {protected: false, merge_train} when no rule applies, else {protected: true, pattern, matched_by, required_checks, …, merge_train}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repo name | |
| owner | Yes | Repo owner — username or organisation slug | |
| branch | No | Branch name (default: the repo's default branch) |