spatecon / gitlab-review-bot

Observes and modifies Merge Requests by Review&Approve Policy. Daily Slack notifications included.
MIT License
49 stars 4 forks source link

Support team/user notifications #1

Closed spatecon closed 1 year ago

spatecon commented 2 years ago

The bot should be able to send two types of notifications:

  1. User notification
  2. Team (channel) notification

Invocation The bot must send notifications to the team (channel) and members (direct messages) by cron schedule. On-demand (by user action) notifications are not in the MVP.

Cron There also should be a cron param that enables the cron job at a specific time that sends notifications. Library https://github.com/robfig/cron is preferred. The format of the cron should be standard with timezones support: CRON_TZ=Asia/Dubai 30 04 * * *

Templating A notification template should be set for a team and stored in the datastore. Templates are strings in go template format.

Provider In the early stages, the bot supports only Slack for messaging. There are plans to support custom notification services.