跟踪github项目,让您知道何时有新版本可用。
dev-master
2013-08-03 08:46 UTC
Requires
- knplabs/github-api: *
- swiftmailer/swiftmailer: 5.1.*@dev
- symfony/console: 2.2.*
- symfony/yaml: 2.3.*
- wooshell/store-notifier: dev-master
This package is not auto-updated.
Last update: 2024-09-24 06:04:55 UTC
README
跟踪github项目,让您知道何时有新版本可用。
通知模式
- 邮件(模式:"swiftMailer")
- 桌面通知(模式:"gnu")
先决条件
- 对于gnu模式,需要notify-send
安装
$ composer install
配置
$ src/wooshell/ghnotifier/Resources/config/notify.yml
使用
使用此命令发送通知
$ bin/gh-notifier send gnu,mail
$ bin/gh-notifier send gnu
$ ..
在后台,每个github项目存储一个历史文件,每次运行脚本时,都会通过Github API检测新版本。
通知模式值用逗号分隔
自动运行
如果您想通过cron运行脚本,则锁定每个gh-notifier运行。运行结束后,锁文件将被删除。
$ bin/gh-notifier send gnu --lock-file=/tmp/gh-notifier.lock
如果您需要一种简单的部署方法,可以构建一个PHAR(需要从https://github.com/kherge/Box 安装 box.phar)
$ build box
$ chmod +x gh-notifier.phar
$ gh-notifier.phar send [...]