Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
language: node_js
node_js:
- "node"
- "6"
- "11.7.0"
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 monokh (https://monokh.com)
Copyright (c) 2017 monokh (https://monokh.com), 2019 Inspectorio (https://inspectorio.com)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<div align="center">

# slack-gitlab-mr-reminder
by [Monokh](https://monokh.com)

[![npm version](https://badge.fury.io/js/slack-gitlab-mr-reminder.svg)](https://badge.fury.io/js/slack-gitlab-mr-reminder)
[![Build Status](https://travis-ci.org/monokh/slack-gitlab-mr-reminder.svg?branch=master)](https://travis-ci.org/monokh/slack-gitlab-mr-reminder)
[![Build Status](https://travis-ci.org/inspectorioinc/slack-gitlab-mr-reminder.svg?branch=master)](https://travis-ci.org/inspectorioinc/slack-gitlab-mr-reminder)

This node module can be used to send slack reminders for overdue gitlab merge requests. The criteria for this is currently merge requests not updated for longer than 1 day.
This node module can be used to send slack reminders for overdue gitlab merge requests. The criteria for this can be configured, but default is that:
- WIP merge requests not updated for longer than 7 day.
- Normal merge requests not updated for longer than 0 day (24 hours).

<img src="screenshot.png" width="500" height="auto"/>

Expand Down Expand Up @@ -42,10 +43,14 @@ This will send out reminders every day at 9AM
## Example - module
You may use the functionality as a module:

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

const reminder = new SlackGitlabMRReminder({
mr: {
wip_mr_days_threshold: 7,
wip_mr_days_threshold: Infinity,
},
slack: {
webhook_url: 'https://hooks.slack.com/services/...',
channel: 'merge-requests',
Expand All @@ -70,6 +75,10 @@ reminder.remind();

## Change Log

### 1.3.0
- Overdue can be configured for both normal and WIP merge requests.
### 1.2.1
- Added gitlab pagination support
### 1.2.0
- Fixed bug which was causing `gitlab.external_url` option to not work correctly
- Added binary to package
2 changes: 2 additions & 0 deletions examples/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
mr:
normal_mr_days_threshold: 3
gitlab:
group: mygroup
slack:
Expand Down
4 changes: 4 additions & 0 deletions examples/example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
var SlackGitlabMRReminder = require('slack-gitlab-mr-reminder');

const reminder = new SlackGitlabMRReminder({
mr: {
wip_mr_days_threshold: 7,
wip_mr_days_threshold: 30,
},
slack: {
webhook_url: 'https://hooks.slack.com/services/...',
channel: 'merge-requests',
Expand Down
Loading