npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@zekker6/slack-gitlab-mr-reminder

v1.4.0

Published

Send reminders about gitlab merge requests to slack

Readme

slack-gitlab-mr-reminder

npm version Test Status Build Status

Docker image

This node module can be used to send slack reminders for overdue gitlab merge requests. Both WIP and Draft merge requests are detected (via title prefix or GitLab API draft field). The criteria for this can be configured, but default is that:

  • WIP/Draft merge requests not updated for longer than 7 days.
  • Normal merge requests not updated for longer than 0 days (24 hours).

Thresholds can be configured in days (legacy) or as duration strings (e.g. 2h, 30m, 1d6h30m) for sub-day precision.

Installation

npm install @zekker6/slack-gitlab-mr-reminder

Example - running as an application

Install the module globally

npm install -g @zekker6/slack-gitlab-mr-reminder

Call slack-gitlab-mr-reminder with a suitable yml config, gitlab access token and slack webhook. See example.yml for an example of config.

GITLAB_ACCESS_TOKEN='...' SLACK_WEBHOOK_URL='...' slack-gitlab-mr-reminder examples/config.yml

This will only run once and send a reminder. You will likely want to run this everyday for which a cron would be suitable:

0 9 * * * GITLAB_ACCESS_TOKEN='...' SLACK_WEBHOOK_URL='...' slack-gitlab-mr-reminder /absolute/path/to/config.yml

This will send out reminders every day at 9AM

Example - module

You may use the functionality as a module:

var SlackGitlabMRReminder = require('slack-gitlab-mr-reminder');

// Using day-based thresholds (legacy)
const reminder = new SlackGitlabMRReminder({
  mr: {
    wip_mr_days_threshold: 7,
    normal_mr_days_threshold: Infinity,
  },
  slack: {
    webhook_url: 'https://hooks.slack.com/services/...',
    channel: 'merge-requests',
  },
  gitlab: {
    access_token: '...',
    group: 'mygroup'
  }
});

// Using duration-based thresholds (supports sub-day precision)
const reminder2 = new SlackGitlabMRReminder({
  mr: {
    wip_mr_threshold: '1d12h',
    normal_mr_threshold: '2h',
  },
  slack: {
    webhook_url: 'https://hooks.slack.com/services/...',
    channel: 'merge-requests',
  },
  gitlab: {
    access_token: '...',
    group: 'mygroup'
  }
});

reminder.remind();

Example - docker

Launch with cron

# To configure via config file
docker run -v config.yml:/opt/config.yml --rm zekker6/slack-gitlab-mr-reminder:{TAG}

# Configuration via env parameters
docker run -e ... --rm zekker6/slack-gitlab-mr-reminder:{TAG}

One-time start


docker run --rm zekker6/slack-gitlab-mr-reminder:{TAG} remind

Supported env variables: |Var|Default|Description| |---|---|---| | REMINDER_CRON_SCHEDULE | '* * * * *' | Cron expression to configure reminder starts | | REMINDER_CONFIG_PATH | /opt/config.yml | Path to mounted config file | | GITLAB_ACCESS_TOKEN | None | Gitlab access token | | GITLAB_GROUP | None | Gitlab group name | | GITLAB_EXTERNAL_URL | None | Gitlab installation url | | GITLAB_WIP_MR_DAYS_THRESHOLD | 7 | Value in days representing threshold of notifying about stale WIP/Draft MR | | GITLAB_NORMAL_MR_DAYS_THRESHOLD | 0 | Value in days representing threshold of notifying about stale MR | | GITLAB_WIP_MR_THRESHOLD | None | Duration string (e.g. 2h, 30m, 1d6h30m) for WIP/Draft MR threshold. Cannot be used together with GITLAB_WIP_MR_DAYS_THRESHOLD | | GITLAB_NORMAL_MR_THRESHOLD | None | Duration string (e.g. 2h, 30m, 1d6h30m) for normal MR threshold. Cannot be used together with GITLAB_NORMAL_MR_DAYS_THRESHOLD | | GITLAB_MR_DATE_FIELD | updated_at | Which MR date field to compare against. Either updated_at or created_at | | SLACK_WEBHOOK_URL | None | Slack webhook to send notifications | | SLACK_CHANNEL | None | Slack channel name |

Options

  • gitlab.group - The name of the group to watch for merge requests - Required

  • gitlab.external_url - The url of the gitlab installation - Defaults to https://gitlab.com (the public gitlab)

  • slack.channel - The slack channel to post to - Required

  • slack.name - Name of the slack poster - Defaults to GitLab Reminder

  • slack.message - Message to send at the top of the slack message - Defaults to Merge requests are overdue:

  • mr.normal_mr_days_threshold - Number of days before a normal MR is considered overdue - Defaults to 0

  • mr.wip_mr_days_threshold - Number of days before a WIP/Draft MR is considered overdue - Defaults to 7

  • mr.normal_mr_threshold - Duration string (e.g. 2h, 30m, 1d6h30m) before a normal MR is considered overdue. Cannot be used together with normal_mr_days_threshold

  • mr.wip_mr_threshold - Duration string (e.g. 2h, 30m, 1d6h30m) before a WIP/Draft MR is considered overdue. Cannot be used together with wip_mr_days_threshold

  • mr.mr_date_field - Which MR date field to compare against: updated_at (default) or created_at

It is possible to run app by using either config file or env variables. Browse examples in examples folder: here