forked from innogames/slack-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.yaml
118 lines (103 loc) · 2.78 KB
/
config.example.yaml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
slack:
token: # use xoxb-1234567-secret
#team: "Developer"
# auto_join_channels:
# - #fancy-channel"
allowed_groups:
- backend
- frontend
jenkins:
host: #https://example.com
username: username
password: secret
jobs:
BackendTests:
parameters:
- name: BRANCH
default: master
type: branch
BuildMobileClient:
parameters:
- name: BRANCH
default: master
type: branch
BuildFrontendClient:
parameters:
- name: BRANCH
default: master
type: branch
#server:
# listen: 127.0.0.1:4390
# verification_secret: d12345sd943434sdfdsfsif9sif9
jira:
#host: https://jira.example.de
username: readonlyuser
password: secret
project: FOO
github:
accesstoken: # optional when using github features
gitlab:
# host: https://gitlab.example.de
# accesstoken: # optional when using gitlab features
storage_path: ./storage
logger:
level: info
file: ./bot.log
macros:
- name: thanks
trigger: (thanks|thank you|danke|sudo)
commands:
- "reply nothing to thank for"
examples:
- thanks
- thank you
- danke
- name: please
description: execute the command after the keyword "please"
trigger: "please (?P<command>.*)"
commands:
- "{{.command}}"
- "add reaction :pray:"
examples:
- please deploy master to xx1
- name: table flip
description: Reply the table flip emoji
trigger: "(flip|table flip)"
commands:
- "reply (╯°□°)╯︵ ┻━┻"
- "add reaction :shinto_shrine:"
- "add reaction :arrows_counterclockwise:"
examples:
- flip
- flip table
- name: bring me coffee
trigger: "(bring|get|make) me( a)? coffee"
commands:
- "reply Get your ass up and pick it yourself!"
- "add reaction :coffee:"
examples:
- bring me a coffee
- make me a coffee
- name: build clients
description: build all development clients
trigger: "build clients? (?P<branch>.*)"
commands:
- "reply I'll build {{ .branch }} for you"
- "trigger job BuildFrontendClient {{ .branch }}"
- "trigger job BuildMobileClient {{ .branch }}"
- "add reaction :white_check_mark:"
- name: meeting time
trigger: "meeting time"
commands:
- "send message to #tech-team It's meeting time :)"
- "add reaction :loudspeaker:"
- name: bot feedback
description: Send issues/suggestions etc. to the bot maintainer
trigger: "bot feedback:? (?P<feedback>.*)"
commands:
- "reply thanks for your feedback :)"
- "send message to <@UADMINID> We got feedback: {{ .feedback }}"
# slack interaction server:
#server:
# listen: 127.0.0.1:4390 # using local ngrok.io tunnel
# verification_secret: 12345678qwertzuiopasdfghj