public
Description: Email yourself daily/weekly/monthly summaries of Lighthouse tickets based on keywords you give it
Homepage: http://alternateidea.com
Clone URL: git://github.com/Caged/lighthouse-digest.git
lighthouse-digest / lighthouse-digest.rb
100644 48 lines (46 sloc) 1.212 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
$:.unshift File.dirname(__FILE__)
 
require 'rubygems'
require 'actionmailer'
require 'vendor/lighthouse-api/lib/lighthouse'
require 'lib/digest'
 
# Example script
#
# Set basic Lighthouse info
# Lighthouse.account = "activereload"
# Lighthouse.token = "YOUR PROJECT TOKEN"
#
#
# Lighthouse::Digest.new do |digest|
# digest.project_id = 44
# digest.from = "foo@email.com"
# digest.query = "state:open updated:'three weeks ago - two weeks ago'"
# digest.emails = "foo@email.com, bar@email.com"
# end
#
#
# launchd agent (Ran every monday):
#
# <?xml version="1.0" encoding="UTF-8"?>
# <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
# <plist version="1.0">
# <dict>
# <key>Label</key>
# <string>com.lighthouseapp.activereload.digest</string>
# <key>ProgramArguments</key>
# <array>
# <string>ruby</string>
# <string>/Users/Caged/myscript.rb</string>
# </array>
# <key>RunAtLoad</key>
# <false/>
# <key>StartCalendarInterval</key>
# <dict>
# <key>Hour</key>
# <integer>0</integer>
# <key>Minute</key>
# <integer>0</integer>
# <key>Weekday</key>
# <integer>1</integer>
# </dict>
# </dict>
# </plist>