GitLab Discord Webhook
A middleman between GitLab and Discord webhooks to show better formatted messages.
Use instructions
In order to use this, you must have a public IP address, with port 7400 open.
- Install modules in
requirements.txt(python 3.10 or higher)
python -m pip install -r requirements.txt
- Create a
config.inifile, you can copy and renameconfig-example.ini. - Create a discord webhook on the desired channel, and paste the URL in the
webhookentry. - Execute
main.py - Go to the desired GitLab project and go to
Settings > Integrations - Paste the public address of your instance
- Select the desired Triggers.
- Click
Add Webhook.
From now on, changes to the project will be posted on the specified channel.
You can have multiple projects pointing to the same gitlab-discord-webhook instance,
but every instance will only post messages through a single Discord webhook.
Supported Triggers
- Push events
- Tag push events
- Comments
- Confidential Comments
- Issues events
- Confidential Issues events
- Merge request events
- Job events
- Pipeline events
- Wiki Page events
Running from Docker
The image can be pulled from Docker Hub:
docker pull galarzaa90/gitlab-discord-webhook:latest
Alternatively, the image can be built from the root of the project's source.
docker build . -t gitlab-discord-webhook:local
To run the image:
docker run -p 7400:7400 --rm -ti gitlab-discord-webhook:local
References
Metadata
Release files for gitlab-discord-webhook 0.2.0
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 |
|---|---|---|---|---|
| gitlab_discord_webhook-0.2.0.tar.gz | 11.3 kB | Without provenance | Details for gitlab_discord_webhook-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gitlab_discord_webhook-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for gitlab_discord_webhook-0.2.0-py3-none-any.whl |
Total release size: 21.1 kB
Release files / gitlab_discord_webhook-0.2.0.tar.gz
| Download URL | gitlab_discord_webhook-0.2.0.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d43529c66367a17fb9936e81f53c5ba2bb1d29ca8d4d701100b19c55def63d99
|
|
BLAKE2b-256 checksum How to use checksums |
4e25cc2c1969103723c24cc560442c9c3a0c9ed6f05b108d98126046a9f21742
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.5
|
Release files / gitlab_discord_webhook-0.2.0-py3-none-any.whl
| Download URL | gitlab_discord_webhook-0.2.0-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9aff4418f82a2a56d6b5fbf33c9fec0e2a30588260fdc7448bc5147309f00c3e
|
|
BLAKE2b-256 checksum How to use checksums |
ac4f587eab1c2cb8963ed8698d31f4e71e4d79a395b65986c0ef0ce94bb0a4f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.5
|
Security for gitlab-discord-webhook 0.2.0
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.