Repo Management
Declarative, YAML-driven management of GitHub repository configuration. Describe how a
repo should be configured in a YAML file; repo-management reads the live state, shows
you the diff, and reconciles it through the GitHub API (via PyGithub).
It is declarative and idempotent: re-running when nothing has changed does nothing.
A section you don't mention is left unmanaged; a section you do declare is the complete
desired set, so anything on the repo not listed in it is removed. The exceptions are the
access-granting sections — collaborators, teams, deploy_keys — which are add-only by
default and never revoke access they didn't grant.
Full documentation lives at nivintw.github.io/repo-management; the source code, issue tracker, and annotated example configs live in the nivintw/repo-management repository on GitHub.
Install
uv tool install repo-management # or: pip install repo-management
Requires Python 3.14+. Authentication uses a GitHub token, read from $GITHUB_TOKEN (or
--token). The token needs the scopes for whatever you manage (repo administration,
Actions secrets, etc.).
Usage
export GITHUB_TOKEN=ghp_...
repo-management validate -c repos.yaml # check the YAML (no network)
repo-management plan -c repos.yaml # show the diff (read-only)
repo-management apply -c repos.yaml # reconcile (prompts before writing)
See the CLI reference for every command and flag, the
config reference for the full config-file schema and every section it
manages, the rulesets reference for branch/tag ruleset details, and the
Projects board reference for declaratively managing a GitHub Projects v2
roadmap board and its automations. The repository's examples/ has a fully-worked
base.yaml + repos.yaml pair (plus
projects.yaml for a board).
Fleet automation
Beyond the CLI, the nivintw/repo-management repository — the tool's home — is
itself a working deployment: a control plane that manages its author's repositories with
scheduled GitHub Actions, reconciling them to config/*.yml on every push and running a
central Renovate instance scoped to exactly that fleet via
repo-management list-repos --format names. See
Fleet automation in the docs for how the pieces fit together, and
.github/workflows/docs.yml's own header comment for the reusable docs-build workflow
other fleet repos call.
Development
Clone the repository, then:
uv sync # create the venv + install everything
uv run pytest # tests + coverage (gate: 90%; currently 100%)
uvx prek@0.5.11 run --all-files # the full quality gate (ruff, format, REUSE, typos, …)
Quality checks run identically locally and in CI via prek hooks: git hygiene, gitleaks,
typos, rumdl, SPDX/REUSE headers, and ruff. Conventional Commits (gitmoji) are enforced at
commit-msg time. A few hooks shell out to system tools prek can't bootstrap — install
them locally too (most are in Homebrew): hawkeye, taplo, osv-scanner.
Publishing to PyPI
Published to PyPI on each GitHub Release via
OIDC Trusted Publishing, dress-rehearsed through TestPyPI first. See
.github/workflows/publish.yml's header comment for the flow and the one-time
environment/Trusted-Publisher setup.
License
Metadata
Release files for repo-management 2.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| repo_management-2.2.1.tar.gz | 307.9 kB | Without provenance | Details for repo_management-2.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| repo_management-2.2.1-py3-none-any.whl | Python 3 | none | any | Details for repo_management-2.2.1-py3-none-any.whl |
Total release size: 398.8 kB
Release files / repo_management-2.2.1.tar.gz
| Download URL | repo_management-2.2.1.tar.gz |
|---|---|
| Size | 307.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f01191acc8364aad4fb472d2f0ed873273f49311118fb21fc4ef8887b77370bb
|
|
BLAKE2b-256 checksum How to use checksums |
44d415993586a4c2855262eeb0fb3a6d6e2359780d24aeb1a12b70cca7e5006d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / repo_management-2.2.1-py3-none-any.whl
| Download URL | repo_management-2.2.1-py3-none-any.whl |
|---|---|
| Size | 90.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b2e4766248af0b60a7f7bfd086eb619e43937851e8b855b45929b8be76d89d3
|
|
BLAKE2b-256 checksum How to use checksums |
fe9af95c345ddd1e4d926c2a1cef8ba238b177def98b0ec426b4e98024685862
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for repo-management 2.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.