Webhooks Listener & Slack Notifier
To create an integration you need to add the following values into the repositories config file:
- Repository name you want to enable
- Slack Channel in which you want to receive the notifications
-
On your GitLab project go to
Settings -> Integrations
-
Put the following URL, replacing
{repoName}
with your project name:https://this.api.domain/webhooks/gitlab/{repoName}
-
Check the events you want to send to your Slack channel (defined on the Pre-requisite section)
- Available events can be found at:
/GET https://this.api.domain/webhooks/gitlab
-
Click the
Add webhook
button
Clone this repo
~$ git clone git@github.com:iniva/webhooks-listener-api.git
To use your machine to run everything you will need:
- Node Dubnium. Using nvm is easy and recommended
- Mac
- Run
brew install nvm
- Run
- Ubuntu
- For the latest version check nvm releases
-
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash source ~/.profile
- Both Platforms
- Run
nvm install lts/dubnium --latest-npm
to install the current LTS version of Node. Also, attempt to install the latest npm version - Run
nvm use lts/dubnium
to set Node to use this version - Run
yarn install
to install the project dependencies - Run
yarn start:dev
to start the API see below for more options - By default the API will listen to http://0.0.0.0:8091
- Run
Start API server in environment mode listening on port 8091
- Environments:
- dev
- prod
Remove build files
Generate build files (dist folder)
Run the test suites
Run lint tool
Helps you make commit messages using the project standardized format