The GitLab to Slack Bot
This is a bot that posts to slack group whenever a new commit has been made in a gitlab project. Bot is written in node.js.
Using Docker (recommended)
Feed the slack incoming webhook url to the environment variable
SLACK_URL, and run the container.
docker run -d --name [app name] -e "SLACK_URL=[incoming webhook url]" -p [host port]:3000 --restart=always victorxw/gitlab-slack-bot
The container listens by default on port
3000. If you'd like to run multiple instances of this bot (to post to different slack teams), or you'd like the bot to listen on a different port on the host, use the
-p options to run the container.
Using Plain Node.js
To get the bot running on your server, make sure you have node.js installed.
git clone firstname.lastname@example.org:colab/gitlab2slack-autobot.git
to clone the repo to your server, then run
to install all the dependencies.
to start the autobot.
- Victor Wang (email@example.com)