A simple Gitlab WebHook
This project provides a Gitlab web hook to receive Gitlab events and process these events.
Installation
It is possible to install the tool with pip:
pip install sc-gitlab-webhook
Configuration
First, make sure /var/opt/sc directory exists, if not create this directory and make sure current user has the right to create files in this directory.
You can copy default.yml to /var/opt/sc/.sc-gitlab-webhook/production.yml to initialize the production configuration.
The default configuration file looks like this:
dev: # whether this program is running is development mode dev_mode: False # flask server info server: # flask server IP ip: "localhost" # flask server port port: 8080 # rocketmq configurations rocketmq: # name server ip name_server_ip: "localhost" # name server port name_server_port: 9876 # group id group_id: "GITLAB_WEBHOOK_MSG" # message topic msg_topic: "GITLAB_WEBHOOK" # message keys msg_keys: "GITLAB" # message tags msg_tags: "GITLAB"
Dependencies
sc-utilities >= 0.0.2
sc-config >= 0.0.3
flask >= 1.1.2
rocketmq-client-python >= 2.0.0
License
The script is released under the MIT License. The MIT License is registered with and approved by the Open Source Initiative [1].
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file sc-gitlab-webhook-0.0.7.tar.gz.
File metadata
- Download URL: sc-gitlab-webhook-0.0.7.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25f961c6c6bea0a43395afcc80e529c90aa9a4c9d522c716566a4d33eaeb1a1a
|
|
| MD5 |
eb56753f2160f46b8426b9889ab35524
|
|
| BLAKE2b-256 |
1bbb6c7b55c832fc3e4d23b0d4376b4a10dfc77b337f0766c28200e004e5ad2e
|