Skip to content

Notifies on changes for given git repository files with git-diff to given email adresses as HTML email

Notifications You must be signed in to change notification settings

pace/docker-diff-notification-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GIT Diff Notification Service for GitLab

Notifies on changes for given git repository files or folders with git-diff to given email adresses as HTML email.

Features

  • Supports multiple files
  • Supports multiple folders
  • Support for wildcards in filenames or folders

Getting Started

These instructions will get you a copy of the project up and running on your own GitLab instance.

Installing

Switch to your GitLab project settings and add these variables to the Secret Variables section of the CI/CD Pipelines options page.

  • SMTP_HOST = smtp.example.com
  • SMTP_USER = me@example.com
  • SMTP_PASS = Pa$$w0rd

Example

screen-1

Now, add this snippet to your repositories .gitlab-ci.yml file as another task

diff_notification:
  stage: build
  image: pacecar/docker-diff-notification-service:0.2
  only:
    - master
  script:
    - ruby /ci-git-diff-notification-service.rb -f db/schema.rb,docs/api* -m me@example.com,them@example.com
    - ruby /ci-git-diff-notification-service.rb -f core/file.py -m alert@example.com

Screenshot

screen-2

Built With

License

All files are subjects to the LGPL2+ or the MPL1.1 (Dual licensed).

About

Notifies on changes for given git repository files with git-diff to given email adresses as HTML email

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published