Skip to main content

A middleman between GitLab and Discord webhooks to show better formatted messages.

Project description

GitLab Discord Webhook

PyPI - Version PyPI - Python Version PyPI - Downloads

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.ini file, you can copy and rename config-example.ini.
  • Create a discord webhook on the desired channel, and paste the URL in the webhook entry.
  • 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

Docker Image Version Docker Image Size Docker Pulls

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitlab_discord_webhook-0.2.0.tar.gz (11.3 kB view hashes)

Uploaded Source

Built Distribution

gitlab_discord_webhook-0.2.0-py3-none-any.whl (9.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page