GithubHelp home page GithubHelp logo

githook's Introduction

GitHook

Simple server to send e-mail notifications about GitHub push events.

Configuration Options

  • RecipientConfig - Path to a YAML file (see below)
  • spring.mail.host - SMTP Host (also additional SMTP settings from Spring Boot)
  • FromAddress - From address on e-mails
  • TestOnly - Boolean (default false) - log but don't actually send notification e-mails
  • SleepTime - (default 10000) Time (ms) between checks to see if the RecipientConfig file has changed

If you run using the provided main method in com.internetitem.githook.GithookReceiverServer then you can customize the HTTP listener using Spring Boot's ServerProperties (for example, server.port=9090).

All configuration properties can either be passed on the command line in the format --key=value or using a standard Java Properties file named application.properties. The latter option is better when run as a WAR file in a Servlet container.

RecipientConfig

YAML file to configure where to send notifications. There must be exactly one top-level element, notifications which must contain an array of structures, each of which should contain two arrays of strings, repositories and emails.

For example:

notifications:
  - repositories: ["https://github.com/abatkin/GitHook"]
    emails: ["[email protected]"]

Repository URLs and e-mails can all appear multiple times.

Customization

You may want to customize the embedded logback.xml file to change logging configuration. Also, the Freemarker template push.ftl can be used to change the format for e-mails. The model passed in is com.internetitem.githook.dataModel.ws.GitHubPush.

githook's People

Contributors

abatkin avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.