Repository navigation
Description
Problem
devops repos onboard writes the ruleset main from the render of the template of dan-petty/infra (baseline.py), and _with_required_checks (settings_rows.py) adds the required checks of the live ruleset and of the template pull request. It never reads github/repository.yaml of the repository itself. So a repository cannot hold its own required checks in that file: a change of the file shows only as "Kept as the repository holds them", and --plan and --confirm do not add its checks. The header of the rendered file says that devops repos onboard applies it, which is true only for the template render.
Evidence
- dan-petty/homelab#538 requires
K8s,LintandPR title / Semantic PR titlein the rulesetmainof itsgithub/repository.yaml.devops repos onboard dan-petty/homelab --plan(v0.224.2) shows10. Ruleset: pendingandruleset main: required checks none yet, and would show the same with the changed file, because the baseline comes from the template at_commitof.copier-answers.yml. devops gh apirefuses an agent a write of a ruleset, so a person writes these checks to the live ruleset by hand (README.md of homelab, "CI and the Actions minutes").
Done when
devops repos onboard <repo> --plannames each required check of thegithub/repository.yamlof the repository on its default branch that the live ruleset lacks, and--confirmadds it. A test fails on the base.- Or the template of dan-petty/infra gets a Copier answer for the required checks, and the command reads it.
Alternatives check of 2026-11-27: partly.
Tool: integrations/terraform-provider-github (https://github.com/integrations/terraform-provider-github), MIT, last activity 2026-11-27, maintained.
Reason: Searches found settings-as-code tools: the GitHub provider for OpenTofu can declare ruleset required checks and plan and apply them, but ADR 0035 rejected it owning repository settings, and it never reads github/repository.yaml.
Covers:
- Declares ruleset required status checks as code
- A plan shows missing checks, an apply adds them
- Per-repository state tracks the live ruleset
Lacks:
- Never reads the repository's own github/repository.yaml
- Cannot hold the ruleset code_quality rule
- No integration with onboard plan or confirm output
Activity
dan-petty commentedon Nov 27, 2026
Both touch _with_required_checks in settings_rows.py for the onboard command, but #7318 fixes a skipped check being counted as passed while this candidate adds reading the repo's own github/repository.yaml.devops-cli-service commentedon Nov 27, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (7)
Tools considered:
Searches run:
Sources:
devops-cli-service commentedon Nov 27, 2026
Released in v0.228.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.228.1
devops-cli-service commentedon Nov 27, 2026
Live since 2026-11-27 18:39 UTC