Skip to content

Use gh CLI to automatically set up repo protection rules and settings #518

@Marenz

Description

@Marenz

When initializing a new repository, it would be useful to automatically configure branch protection rules, required status checks, and other repository settings using the gh CLI (or GitHub API via gh api).

This could be part of the repo setup tooling so new repos don't require manual configuration steps in the GitHub UI.

Things to consider:

  • Branch protection rules (require PR reviews, status checks, signed commits, etc.)
  • Default branch settings
  • Repository features (issues, wiki, projects)
  • Potentially as a frequenz-repo-config command or nox session

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions