Skip to content

Send reminders to Slack (or Mattermost) with a list of open GitLab merge requests.

License

Notifications You must be signed in to change notification settings

gpaddis/gitlab-slack-notifier

Repository files navigation

GitLab Slack Notifier

Build Status

Send a reminder to a Slack (or Mattermost) channel with a list of open GitLab merge requests waiting for someone to merge them. You can define a list of groups to monitor, so that no merge requests sink into oblivion anymore.

The list of merge requests will look like this:


Open Merge Requests - 15 November

If you are still working on a merge request, mark it as WIP and it will not appear in the list.

📕 Resolve "Fix checkout bug" - Author: John Smith, updated 12 days ago
📙 Resolve "Add button to wishlist" - Author: John Smith, updated 3 days ago, assigned to Nick Carter
📗 Resolve "Update styles.less" - Author: Nick Carter, updated yesterday 🚫 cannot be merged


The merge requests are sorted by date (older first) and marked with 📗 (up to 1 day), 📙 (up to a week) or 📕 (older than a week). WIP MRs are not shown.

This project was inspired by slack-gitlab-mr-reminder.

Requirements

  • A GitLab API Token
  • A Slack / Mattermost Webhook URL

Setup

Clone the repository and install the dependencies:

bundle

Copy the configuration file in the script directory:

cp config.example.json config.json

Edit the file and set the correct values, then run the notifier script:

./notifier

You will receive a notification in your Slack channel with the list of open merge requests.

Tests

Run bundle exec guard to keep the test suite running in watch mode.

About

Send reminders to Slack (or Mattermost) with a list of open GitLab merge requests.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages