-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrules.json.example
More file actions
70 lines (70 loc) · 1.75 KB
/
rules.json.example
File metadata and controls
70 lines (70 loc) · 1.75 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"$schema": "./../rules.schema.json",
"providers": {
"discord-main": {
"plugin": "discord",
"options": {
"webhook_url": "https://discord.com/api/webhooks/AAA/BBB/CCC"
}
},
"discord-important": {
"plugin": "discord",
"options": {
"webhook_url": "https://discord.com/api/webhooks/XXX/YYY/ZZZ"
}
},
"slack-team": {
"plugin": "slack",
"options": {
"webhook_url": "https://hooks.slack.com/services/XXX/YYY/ZZZ",
"channel": "#reminders"
}
}
},
"rules": [
{
"name": "Catch-all — every reminder",
"match": "all",
"conditions": [],
"providers": [ "discord-main"],
"stop_on_match": false
},
{
"name": "High priority tasks → two channels",
"match": "all",
"conditions": [
{ "field": "priority", "op": ">=", "value": 3 }
],
"providers": [ "discord-important", "slack-team" ],
"stop_on_match": false
},
{
"name": "Favorite tasks in project 1",
"match": "all",
"conditions": [
{ "field": "project_id", "op": "=", "value": 1 },
{ "field": "is_favorite", "op": "=", "value": true }
],
"providers": [ "discord-main" ],
"stop_on_match": false
},
{
"name": "Tasks with attachments",
"match": "all",
"conditions": [
{ "field": "has_attachments", "op": "=", "value": true }
],
"providers": [ "discord-main" ],
"stop_on_match": false
},
{
"name": "Title contains keyword",
"match": "all",
"conditions": [
{ "field": "title", "op": "contains", "value": "urgent" }
],
"providers": [ "discord-important" ],
"stop_on_match": false
}
]
}