Configure GitLab groups and projects settings automatically
Project description
gitlab-projects-settings
Configure GitLab groups and projects settings automatically
Purpose
This tool can automatically configure and update the GitLab settings
of groups, subgroups and projects, using multiple available options.
Repetitive tasks can be performed accross multiple projects at once,
for example protecting tags and branches, or setting a new avatar recursively.
Usage
usage: gitlab-projects-settings [-h] [--version] [-t TOKEN] [--dry-run] [--exclude-group] [--exclude-subgroups]
[--exclude-projects] [--reset-features] [--reset-members] [--set-avatar FILE]
[--set-description TEXT] [--update-description] [--protect-branches]
[--protect-tags LEVEL]
[gitlab] [path]
gitlab-projects-settings: Configure GitLab groups and projects settings automatically
internal arguments:
-h, --help # Show this help message
--version # Show the current version
credentials arguments:
-t TOKEN # GitLab API token (default: GITLAB_TOKEN environment)
common settings arguments:
--dry-run # Enable dry run mode to check without saving
--exclude-group # Exclude parent group settings
--exclude-subgroups # Exclude children subgroups settings
--exclude-projects # Exclude children projects settings
general settings arguments:
--reset-features # Reset features of GitLab projects based on usage
--reset-members # Reset members of GitLab projects and groups
--set-avatar FILE # Set avatar of GitLab projects and groups
--set-description TEXT # Set description of GitLab projects and groups
--update-description # Update description of GitLab projects and groups automatically
repository settings arguments:
--protect-branches # Protect branches with default master/main, develop and staging
--protect-tags LEVEL # Protect tags at level [no-one,admins,maintainers,developers]
positional arguments:
gitlab # GitLab URL (default: https://gitlab.com)
path # GitLab group or project path
Dependencies
- colored: Terminal colors and styles
- python-gitlab: A python wrapper for the GitLab API
- setuptools: Build and manage Python packages
References
- git-chglog: CHANGELOG generator
- gitlab-release: Utility for publishing on GitLab
- gitlabci-local: Launch .gitlab-ci.yml jobs locally
- mypy: Optional static typing for Python
- PyPI: The Python Package Index
- twine: Utility for publishing on PyPI
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for gitlab_projects_settings-2.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1f5befdcbdaf0d2161f3f7c3ac2dec3d7b7d3ed78e728e8221321976c5c9815 |
|
MD5 | bc1487424e0dfff5a19e96f085af12c8 |
|
BLAKE2b-256 | d9a1cf602ea34f2e3715e0655e98bb1ff1692518c5a3edf43f8c095659b447e8 |
Close
Hashes for gitlab_projects_settings-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4314a397d52c5ae277bb23e4e74a085a704554906f9559b90d00cb6ba575dcae |
|
MD5 | 24f740e52025e1ecdfb6ec562cc7e5dd |
|
BLAKE2b-256 | 9487e87cdd40c5df1e642701f77ddc5adb41ec34ef8a43b6900d14a22bba3786 |