https://github.com/ai-lenok/gitlab-maintainer
Setting up private repos in GitLab
https://github.com/ai-lenok/gitlab-maintainer
devops gitlab python3
Last synced: 6 months ago
JSON representation
Setting up private repos in GitLab
- Host: GitHub
- URL: https://github.com/ai-lenok/gitlab-maintainer
- Owner: ai-lenok
- Created: 2023-02-14T12:24:21.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-10T20:47:48.000Z (over 3 years ago)
- Last Synced: 2025-01-21T10:50:59.502Z (over 1 year ago)
- Topics: devops, gitlab, python3
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Setting up private repos in GitLab
Script for creating private repos by template (import_url)
## Install requirements
```shell
pip3 install -r requirements.txt
```
## Run
### Creating repos and inviting users
Get list of all users from [settings.json](config/settings.json)\
Create a repo with a username using template (import_url) from [settings.toml](config/settings.toml)
```shell
python3 inviter.py
```
### Approve signing up users
By default, GitLab requires you to approve the registration of all users.
Get white list of users from [settings.json](config/settings.json)
```shell
python3 inviter.py
```
## Settings
You can see an example of all settings in [settings.json](config/settings.json)
and [settings.toml](config/settings.toml)
I recommend creating `config/.secrets.json` and `config/.secrets.toml` files following the pattern `config/settings.json`
and `config/settings.toml`\
To store sensitive settings