Skip to content

Commit d6c5b56

Browse files
committed
Use chatops pack over slack for sending messages.
1 parent 98120d6 commit d6c5b56

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
## Change
88
- Updated tsc reminder for 30 minutes before 17h30 UTC.
9-
9+
- Use chatops pack over slack pack to send messages.
10+
1011
## Delete
1112

1213
## 0.4.0

actions/workflows/retrieve_data_and_send_daily_stats_to_slack.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ tasks:
1818
- assemble_message
1919
publish:
2020
- forum_posts: <% result().result %>
21+
2122
get_github_issues:
2223
action: st2community.get_github_issues
2324
with:
@@ -32,6 +33,7 @@ tasks:
3233
- assemble_message
3334
publish:
3435
- github_data: <% task(get_github_issues).result.items.select($.result.result) %>
36+
3537
assemble_message:
3638
join: all
3739
action: st2community.assemble_message
@@ -44,10 +46,10 @@ tasks:
4446
- send_message_to_slack
4547
publish:
4648
- message: "<% result().result %>"
49+
4750
send_message_to_slack:
48-
action: slack.chat.postMessage
51+
action: chatops.post_message
4952
input:
50-
username: st2
51-
icon_emoji: ":st2:"
53+
route: errbot
5254
channel: <% ctx(channel) %>
53-
text: <% ctx(message) %>
55+
message: "<% ctx(message) %>"

rules/post_tsc_reminder_to_slack.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ trigger:
1414
second: 0
1515

1616
action:
17-
ref: "slack.chat.postMessage"
17+
ref: "chatops.post_message"
1818
parameters:
19-
username: st2
20-
icon_emoji: ":st2:"
2119
channel: "#tsc"
22-
text: "@here Reminder, the TSC meeting starts in 30 minutes!"
20+
route: errbot
21+
message: ":st2: @here Reminder, the TSC meeting starts in 30 minutes!"

0 commit comments

Comments
 (0)