{"id":3860,"date":"2018-11-07T18:59:24","date_gmt":"2018-11-07T23:59:24","guid":{"rendered":"http:\/\/lisa.rushworth.us\/?p=3860"},"modified":"2018-12-06T18:00:50","modified_gmt":"2018-12-06T23:00:50","slug":"did-you-know-you-can-push-gitlab-notifications-to-microsoft-teams","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=3860","title":{"rendered":"Did you know \u2026 you can push GitLab notifications to Microsoft Teams?"},"content":{"rendered":"\n<p>Microsoft Teams offers a lot of connectors which allow you to see external notifications right in a Teams channel, and you can push GitLab notifications to Teams. Determine the channel into which you want the notifications posted \u2013 I decided to make a new channel <em>just<\/em> for GitLab notifications, but you can use an existing channel too. Click the hamburger menu next to the channel name and select \u201cConnectors\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"656\" height=\"415\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2018\/12\/Teams-GitLab01.png\" alt=\"\" class=\"wp-image-3861\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab01.png 656w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab01-300x190.png 300w\" sizes=\"auto, (max-width: 656px) 100vw, 656px\" \/><\/figure>\n\n\n\n<p>Locate \u201cIncoming Webhook\u201d and click \u201cAdd\u201d next to it<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1015\" height=\"685\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2018\/12\/Teams-GitLab02.png\" alt=\"\" class=\"wp-image-3862\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab02.png 1015w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab02-300x202.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab02-768x518.png 768w\" sizes=\"auto, (max-width: 1015px) 100vw, 1015px\" \/><\/figure>\n\n\n\n<p>There\u2019s not much to see here \u2013 just click \u201cInstall\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"763\" height=\"766\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2018\/12\/Teams-GitLab03-1.png\" alt=\"\" class=\"wp-image-3867\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab03-1.png 763w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab03-1-150x150.png 150w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab03-1-300x300.png 300w\" sizes=\"auto, (max-width: 763px) 100vw, 763px\" \/><\/figure>\n\n\n\n<p>Provide a descriptive name for the webhook and click \u201cCreate\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1018\" height=\"678\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2018\/12\/Teams-GitLab04.png\" alt=\"\" class=\"wp-image-3864\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab04.png 1018w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab04-300x200.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab04-768x511.png 768w\" sizes=\"auto, (max-width: 1018px) 100vw, 1018px\" \/><\/figure>\n\n\n\n<p>Scroll down and copy the webhook URL<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1022\" height=\"685\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2018\/12\/Teams-GitLab05-1.png\" alt=\"\" class=\"wp-image-3866\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab05-1.png 1022w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab05-1-300x201.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab05-1-768x515.png 768w\" sizes=\"auto, (max-width: 1022px) 100vw, 1022px\" \/><\/figure>\n\n\n\n<p>Click \u201cDone\u201d. Now go to your GitLab project. On the sidebar, scroll down to \u201cSettings\u201d and select \u201cIntegrations\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"327\" height=\"671\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2018\/12\/Teams-GitLab06.png\" alt=\"\" class=\"wp-image-3868\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab06.png 327w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab06-146x300.png 146w\" sizes=\"auto, (max-width: 327px) 100vw, 327px\" \/><\/figure>\n\n\n\n<p>Scroll down to the \u201cProject services\u201d section. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"268\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2018\/12\/Teams-GitLab07-1024x268.png\" alt=\"\" class=\"wp-image-3869\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab07-1024x268.png 1024w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab07-300x78.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab07-768x201.png 768w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab07.png 1250w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Locate \u201cMicrosoft Teams Notification\u201d and click on it<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"675\" height=\"511\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2018\/12\/Teams-GitLab08.png\" alt=\"\" class=\"wp-image-3870\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab08.png 675w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab08-300x227.png 300w\" sizes=\"auto, (max-width: 675px) 100vw, 675px\" \/><\/figure>\n\n\n\n<p>Check the box to activate the integration. Select the events for which you want information pushed to Teams<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"776\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2018\/12\/Teams-GitLab09-1024x776.png\" alt=\"\" class=\"wp-image-3871\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab09-1024x776.png 1024w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab09-300x227.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab09-768x582.png 768w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab09.png 1215w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Remember that URL we copied? Well, here\u2019s where you paste it in. You can elect to receive notifications for <em>only<\/em> the default branch or all branches. You can elect to receive all pipeline notifications or only broken pipeline notifications. Click \u201cTest settings and save changes\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"858\" height=\"462\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2018\/12\/Teams-GitLab10.png\" alt=\"\" class=\"wp-image-3872\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab10.png 858w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab10-300x162.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab10-768x414.png 768w\" sizes=\"auto, (max-width: 858px) 100vw, 858px\" \/><\/figure>\n\n\n\n<p>If everything worked, you will see a banner indicating that the Microsoft Teams Notification was activated. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"150\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2018\/12\/Teams-GitLab12-1024x150.png\" alt=\"\" class=\"wp-image-3874\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab12-1024x150.png 1024w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab12-300x44.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab12-768x112.png 768w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab12.png 1137w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Now do something in your GitLab project \u2013 commit a code update, create an issue, add a page to the Wiki \u2026 anything that you\u2019ve selected to trigger notifications. <\/p>\n\n\n\n<p>And \u2026 check out your Teams channel:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"722\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2018\/12\/Teams-GitLab11-1024x722.png\" alt=\"\" class=\"wp-image-3873\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab11-1024x722.png 1024w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab11-300x212.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab11-768x542.png 768w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2018\/12\/Teams-GitLab11.png 1229w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft Teams offers a lot of connectors which allow you to see external notifications right in a Teams channel, and you can push GitLab notifications to Teams. Determine the channel into which you want the notifications posted \u2013 I decided to make a new channel just for GitLab notifications, but you can use an existing &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[677],"tags":[660,232,666,665,711],"class_list":["post-3860","post","type-post","status-publish","format-standard","hentry","category-office-365","tag-ci-cd","tag-gitlab","tag-microsoft-teams","tag-teams","tag-teams-connectors"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/3860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3860"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/3860\/revisions"}],"predecessor-version":[{"id":3875,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/3860\/revisions\/3875"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}