https://github.com/caged/lighthouse-digest
Email yourself daily/weekly/monthly summaries of Lighthouse tickets based on keywords you give it
https://github.com/caged/lighthouse-digest
Last synced: about 1 year ago
JSON representation
Email yourself daily/weekly/monthly summaries of Lighthouse tickets based on keywords you give it
- Host: GitHub
- URL: https://github.com/caged/lighthouse-digest
- Owner: caged
- License: mit
- Created: 2008-05-02T00:22:18.000Z (about 18 years ago)
- Default Branch: master
- Last Pushed: 2008-05-02T00:22:40.000Z (about 18 years ago)
- Last Synced: 2025-05-15T02:36:30.850Z (about 1 year ago)
- Language: Ruby
- Homepage: http://alternateidea.com
- Size: 85 KB
- Stars: 9
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
## Lighthouse Digest
Use this with launchd to create digest emails for Lighthouse tickets.
Example uses:
* Send a summary of stale tickets to members on your team every week.
* Get daily summaries of tickets created that day
* Get daily summaries of tickets closed that day
# Set basic Lighthouse info
# Your lighthouse account name
Lighthouse.account = "activereload"
# Your API Key for this particular project
Lighthouse.token = "YOUR TOKEN"
Lighthouse::Digest.new do |digest|
digest.project_id = 44 # Lighthouse project id
digest.from = "you@someemail.com" # optional
digest.query = "state:open updated:'three weeks ago - two weeks ago'" # Any valid Lighthouse search
digest.emails = "foo@email.com, bar@email.com" # Who to send this digest too
end
Here is a typical launchd script to email you once a week. Place this in ~/Library/LaunchAgents/com.lighthouseapp.project.digest.
<?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>
### Load it
launchctl load ~/Library/LaunchAgents/com.lighthouseapp.PROJECT.digest
### Test it using the label you give it in the plist
launchctl start com.lighthouseapp.PROJECT.digest
### Stopping it
If you want to stop this script for good, unload it:
launchctl unload ~/Library/LaunchAgents/com.lighthouseapp.PROJECT.digest