Skip to content
This is a serverless gitlab connector for microsoft teams
JavaScript
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
services allow only open, merge and close events Oct 19, 2017
.gitignore setup environments Oct 13, 2017
README.md
Screenshot 2017-10-19 21.07.40.png Add files via upload Oct 19, 2017
connectors.png fix missing images & update readme Dec 25, 2017
handler.js fix env variables and url definations Oct 19, 2017
package.json Add issue service && fix card Oct 16, 2017
serverless.yml Update serverless.yml Oct 19, 2017

README.md

Serverless Microsoft Teams Gitlab Connector

serverless

Easy integration to notify GitLab Merge Request and Issues to Microsoft Teams.




How to use

Microsoft Teams Side

Step 1️⃣

In Microsoft Teams, choose the More options (⋯) button next to the channel name in the list of channels and then choose Connectors.


Step 2️⃣

In the list, click Add for the Incoming Webhook. enter image description here


Step 3️⃣

Enter the connector name as GitLab and upload an icon. Save and copy your connector url (channel_incoming_webhook_url).

GitLab Side

Step 1️⃣

Go to your repo settings on GitLab and click Integrations section from left bar. Copy this link: https://0xjjw6j039.execute-api.us-east-1.amazonaws.com/prod/events?url=channel_incoming_webhook_url and change channel_incoming_webhook_url part with your teams url. Then paste it to url input area on GitLab.


Step 2️⃣

Enable Issues events, Merge Request events and SSL Verification then save it.

GitLab Webhook



Deploy to your aws acount

git clone git@github.com:svtek/serverless-microsoft-teams-gitlab-connector.git
cd serverless-microsoft-teams-gitlab-connector
npm install

If you don't want to add the channel_incoming_webhook_url as params to your function endpoint url: Follow Microsoft Teams steps, copy the url and add it to you env variables. export channel_incoming_webhook_url=https://outlook.office.com/webhook/...

Deploy: serverless deploy

Then follow the GitLab steps and add https://your-function-endpoint-url/events to url input area on GitLab.

Testing Locally:

serverles offline start
./ngrok http 3000
# add `/events` path to output url and paste (https://123456.ngrok.io/events) to GitLab url input.

Features

  • Merge Request
  • Issues
  • Push
  • Comments
  • Jobs

Authors

Sahin Boydas

Co-Founder @ MojiLaLa
LinkedIn
Muhammet

Developer @ MojiLaLa
Github
Sadik

Developer @ MojiLaLa
Github
You can’t perform that action at this time.