Skip to content

Commit 963f97f

Browse files
authored
Merge pull request #5051 from nzlosh/errbot_notify
Add notify-errbot rule to ChatOps pack.
2 parents 5c4e5f8 + db340e8 commit 963f97f

File tree

6 files changed

+32
-9
lines changed

6 files changed

+32
-9
lines changed

CHANGELOG.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ in development
66

77
Added
88
~~~~~
9+
* Added notification support for err-stackstorm. (new feature) #5051
910
* Added st2-auth-ldap pip requirements for LDAP auth integartion. (new feature) #5082
1011
Contributed by @hnanchahal
11-
12+
1213
Changed
1314
~~~~~~~~~
1415
* Improve the st2-self-check script to echo to stderr and exit if it isn't run with a
@@ -18,9 +19,9 @@ Fixed
1819
~~~~~~~~~
1920
* Fix nginx buffering long polling stream to client. Instead of waiting for closed connection
2021
wait for final event to be sent to client. (bug fix) #4842 #5042
21-
22+
2223
Contributed by @guzzijones
23-
24+
2425
3.3.0 - October 06, 2020
2526
------------------------
2627

@@ -47,11 +48,10 @@ Added
4748
Python 2. (new feature) #5043
4849

4950
Contributed by @amanda11
50-
* Added deprecation warning to st2ctl, if st2 python version is Python 2. (new feature) #5044
51+
* Added deprecation warning to st2ctl, if st2 python version is Python 2. (new feature) #5044
5152

5253
Contributed by @amanda11
5354

54-
5555
Changed
5656
~~~~~~~
5757
* Switch to MongoDB ``4.0`` as the default version starting with all supported OS's in st2
@@ -102,7 +102,7 @@ Fixed
102102
(bug fix) #4993
103103

104104
* Fixed a bug where a python3 sensor using ssl needs to be monkey patched earlier. See also #4832, #4975 and gevent/gevent#1016 (bug fix) #4976
105-
105+
106106
Contributed by @punkrokk
107107
* Fixed bug where action information in RuleDB object was not being parsed properly
108108
because mongoengine EmbeddedDocument objects were added to JSON_UNFRIENDLY_TYPES and skipped.
@@ -141,7 +141,7 @@ Removed
141141

142142
Contributed by Amanda McGuinness (@amanda11 Ammeon Solutions)
143143
* Removed our fork of ``codecov-python`` for CI and have switched back to the upstream version (improvement) #5002
144-
144+
145145
3.2.0 - April 27, 2020
146146
----------------------
147147

contrib/chatops/CHANGES.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Changelog
22

3+
## [1.1.0] - 2020-10-02
4+
### Added
5+
- added `notify-errbot` rule to better support err-stackstorm users.
6+
37
## [1.0.2] - 2019-11-22
48
### Added
5-
- `route` to `post_result` parameters to be propogated through to `post_message`.
9+
- `route` to `post_result` parameters to be propagated through to `post_message`.
610

711
## [1.0.1] - 2018-11-06
812
### Added

contrib/chatops/icon.png

100755100644
File mode changed.

contrib/chatops/pack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: chatops
33
description: ChatOps integration pack
4-
version: 1.0.2
4+
version: 1.1.0
55
python_versions:
66
- "2"
77
- "3"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: "notify-errbot"
3+
pack: "chatops"
4+
enabled: true
5+
description: "Notification rule to send results of action executions to stream for errbot."
6+
trigger:
7+
type: "core.st2.generic.notifytrigger"
8+
criteria:
9+
trigger.route:
10+
pattern: "errbot"
11+
type: "equals"
12+
action:
13+
ref: chatops.post_result
14+
parameters:
15+
channel: "{{trigger.data.source_channel}}"
16+
user: "{{trigger.data.user}}"
17+
execution_id: "{{trigger.execution_id}}"
18+
route: "{{ trigger.route }}"
19+
context: "{{trigger.data.source_context}}"

contrib/chatops/rules/notify_hubot.yaml

100755100644
File mode changed.

0 commit comments

Comments
 (0)