Uses a config file at ~/.goPR.json
with the following format:
{
"ghtoken": "TOKEN",
"repos": [
{
"org": "bebrws",
"repo": "2DMessAround"
}
]
}
Get Native OSX Notifications for GitHub Pull Requests (open PRs, comments, etc)
- Show multiple notifications for lots of changes?
- Document how to config
For example use terminal-notifier with a diff of gh pr status
.
Yeah, I could have. But it is about the GoLang practice alright?
<?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>CFBundleExecutable</key>
<string>goPR</string>
<key>CFBundleGetInfoString</key>
<string>Created to notify on GH changes</string>
<key>CFBundleIdentifier</key>
<string>com.bebrws.goPR</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>LSMinimumSystemVersion</key>
<string>10.7</string>
<key>CFBundleName</key>
<string>goPR</string>
<key>NSAppleEventsUsageDescription</key>
<string>goPR requires sending apple events</string>
<key>CFBundleIconFile</key>
<string>icon.icns</string>
<key>CFBundleVersion</key>
<string>1000</string>
<key>CFBundleShortVersionString</key>
<string>Build 1000</string>
<key>NSUserSelectedReadWriteAttribute</key>
<array>
<string>public.folder</string>
</array>
</dict>
</plist>