wooshell/gh-notifier

Tracks github projects to let you know when new releases are available.

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Type:project

dev-master 2013-08-03 08:46 UTC

This package is not auto-updated.

Last update: 2024-04-23 04:07:15 UTC


README

Tracks github projects to let you know when new releases are available.

Notifications modes:

  • mail (mode: "swiftMailer")
  • desktop notification (mode: "gnu")

Prerequisites

  • notify-send for gnu mode

Installation

$ composer install

Configuration

$ src/wooshell/ghnotifier/Resources/config/notify.yml

Usage

Use this command to send notifications:

$ bin/gh-notifier send gnu,mail
$ bin/gh-notifier send gnu
$ ..

In the background, an history file is stored for each github project and at each run, the script detects new releases via Github API.

Notification modes values are comma separated

Running automatically

Lock each run of gh-notifier if you want to cronify the script. The lock file is removed at the end of a run.

$ bin/gh-notifier send gnu --lock-file=/tmp/gh-notifier.lock

You can build a PHAR if you need an easy way to deploy (needs box.phar installation from https://github.com/kherge/Box ):

$ build box
$ chmod +x gh-notifier.phar
$ gh-notifier.phar send [...]