blob: 2a297b0d82bd6d8c8db7094099d739c4379b4f6a (
plain)
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
49
|
wajir
=====
Automatically watch Jira issues. Given a JQL query, the currently authenticated
user will be added as a watcher on all resulting issues.
## Usage
The following command adds ‘jira-user@example.com’ as a watcher on all Jira
issues in the “FAKE” project that are not already watched by that user.
Additionally, an email will be delivered to ‘jira-user@example.com’ using the
`/usr/local/bin/maildrop` program for each of those issues, containing the issue
summary, metadata, and description.
$ wajir \
--login 'jira-user@example.com' \
--token 'jp3cy1PFmDiCw73JJO6YL9Dj' \
--endpoint 'example.atlassian.net' \
--sendmail '/usr/local/bin/maildrop' \
--email-to 'jira-user@example.com' \
'project = "FAKE" AND watcher != currentUser() ORDER BY created ASC'
The program is designed to run at a recurring interval (via `cron` or `launchd`
for example).
## Install
Mac OS X users can install with Homebrew:
$ brew install teddywing/formulae/wajir
Or with MacPorts, after [adding a custom repository source][teddywing ports
repository]:
$ sudo port install wajir
[teddywing ports repository]: https://github.com/teddywing/macports-ports#adding-this-repository-source
## Build
$ git submodule init && git submodule update
$ make build
## License
Copyright © 2022 Teddy Wing. Licensed under the GNU GPLv3+ (see the included
COPYING file).
|