ops-watcher

command module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 6 Imported by: 0

README

OPS Watcher

A tool that sends MacOS push notifications for updates to JIRA tickets

Installation with homebrew

Enable the custom tap

brew tap petetanton/ops-tools
==> Tapping petetanton/ops-tools
Cloning into '/usr/local/Homebrew/Library/Taps/petetanton/homebrew-ops-tools'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 4 (delta 0), reused 4 (delta 0), pack-reused 0
Unpacking objects: 100% (4/4), done.
Tapped 1 formula (27 files, 24.7KB).

Install ops-watcher

brew install ops-watcher
==> Installing ops-watcher from petetanton/ops-tools
==> Downloading https://github.com/petetanton/ops-watcher/releases/download/0.0.1/ops-watcher-darwin-amd64.zip
🍺  /usr/local/Cellar/ops-watcher/64: 3 files, 12.2MB, built in 4 seconds

Configuration

The app looks for an ops-watcher.yaml file which should contain the following:

jira_username: my.email@mydomain.com
jira_password: jiraapikey
jira_baseurl: https://example.atlassian.net
jira_enabled: true
jira_query:
  - <as many JQL queries as you like without and filters by date>
  - watcher = currentUser()

Alternatively, the config can contain a field called jira_token which if present will take preference over user name and password for bearer auth style communication with Jira

When the app runs, it queries the JIRA API every minute for each JQL query in the configuration.
If a new issue has been raised or updated for any of those queries since the last run, a Mac OS push notification is sent using the terminal-notification command.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL