Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

## Change
- Updated tsc reminder for 30 minutes before 17h30 UTC.

- Use chatops pack over slack pack to send messages.

## Delete

## 0.4.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ tasks:
- assemble_message
publish:
- forum_posts: <% result().result %>

get_github_issues:
action: st2community.get_github_issues
with:
Expand All @@ -32,6 +33,7 @@ tasks:
- assemble_message
publish:
- github_data: <% task(get_github_issues).result.items.select($.result.result) %>

assemble_message:
join: all
action: st2community.assemble_message
Expand All @@ -44,10 +46,13 @@ tasks:
- send_message_to_slack
publish:
- message: "<% result().result %>"

send_message_to_slack:
action: slack.chat.postMessage
action: chatops.post_message
input:
username: st2
icon_emoji: ":st2:"
route: errbot
channel: <% ctx(channel) %>
text: <% ctx(message) %>
message: "<% ctx(message) %>"
extra:
slack:
mrkdwn: true
7 changes: 3 additions & 4 deletions rules/post_tsc_reminder_to_slack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ trigger:
second: 0

action:
ref: "slack.chat.postMessage"
ref: "chatops.post_message"
parameters:
username: st2
icon_emoji: ":st2:"
channel: "#tsc"
text: "@here Reminder, the TSC meeting starts in 30 minutes!"
route: errbot
message: ":st2: @here Reminder, the TSC meeting starts in 30 minutes!"