Book Image

GitLab Cookbook

By : Jeroen van Baarsen
Book Image

GitLab Cookbook

By: Jeroen van Baarsen

Overview of this book

Table of Contents (16 chapters)
GitLab Cookbook
About the Author
About the Reviewers

Working with external services

GitLab has built-in support for a variety of external services, so you can integrate GitLab with your favorite chat service, such as Slack or Campfire, or project management tools, such as Assembla or Pivotal Tracker. In this recipe, we will take a look at how you can set up GitLab to send out an e-mail when someone pushes a commit.

How to do it…

In the following steps, we will set up e-mails on a push:

  1. Log in to your GitLab instance as a project owner.

  2. Click on the project for which you want to set up the service. In this example, I'll be using the super-git project that was created in a previous chapter.

  3. Click on Settings.

  4. Click on Services in the left-hand side menu.

  5. First, we're going to set up the e-mail on push notifications. Click on Email on Push.

  6. Check the Active checkbox and fill in the e-mail addresses you want GitLab to send mails to.

  7. Click on Save.

  8. After you've saved the service, you get a new Test settings button.

  9. When you go to your mail inbox, you should...