ToDo: add a description of what this is.
- Node.js v16.6.0 or higher
- Download or clone the repo (or download the latest
Source Code
zip from the releases page and unpack it) - Edit
.env.example
and add the required configurations (see configurating) - Rename
.env.example
to.env
- Open a terminal and run
npm install
- Then run
npm run build
There will maybe be a Dockerfile in the future
DISCORD_TOKEN
- A token for a bot from https://discord.com/developers/applicationsCHANNEL_ID
- A channel id from the channel where to create the threads inGITLAB_ORG_NAME
- The name of your GitLab Org (without any/
or spaces; can also be a personal username)PORT
optional; default is4000
- The port to run the bot on
We sugest using pm2
to start the bot.
- Install
pm2
globally:npm install -g pm2
- Go to the bot directory.
- Run
pm2 start ecosystem.config.js
.
To stop the bot, simply go to the bot directory and run pm2 stop ecosystem.config.js
.
- Go to https://gitlab.com/
- Go to your Group (or Project) -> Settings -> Integrations
- Find
Discord Notifications
and click on it - Make sure
Enable integration
is checked - Check every trigger you want to receive notifications for
- Fill out
Webhook
withhttp://<your_domain>:<your_port>/incoming
(refer to the configuration for the port) - Click
Save changes