File: README.md

package info (click to toggle)
gitlab-rulez 0.0~git20221202.8222047e-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 88 kB
  • sloc: python: 360; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 731 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
gitlab-rulez
============

Compute and apply changes to the settings of the projects in a GitLab instance
based on a set of YAML rules.

First, configure the GitLab access credentials for python-gitlab:
https://python-gitlab.readthedocs.io/en/stable/cli-usage.html#configuration

Create a `rulez.yaml` file with expected GitLab setting rules, see `sample-rulez.yaml`.

Then check what currently violates the rules so far defined:

    gitlab-rulez diff ./rulez.yaml

If what gitlab-rulez highlights seem sensible, tell it to poke your GitLab
instance until it is happy:

    gitlab-rulez apply ./rulez.yaml

To limit the changes to a single project, use `--filter`:

    gitlab-rulez apply ./rulez.yaml --filter pkg/target/systemd