Repository navigation
feat(automations): Run event automations for new Slack channel messages - #2119
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
sentry-junior
Bot
force-pushed
the
feat/slack-channel-message-automations
branch
from
October 13, 2026 23:08
8ef8dc8 to
8123801
Compare
sentry-junior
Bot
force-pushed
the
feat/slack-channel-message-automations
branch
from
October 13, 2026 23:19
8123801 to
3b8a11c
Compare
sentry-junior
Bot
force-pushed
the
feat/slack-channel-message-automations
branch
from
October 13, 2026 23:21
3b8a11c to
f8236a5
Compare
sentry-junior
Bot
force-pushed
the
feat/slack-channel-message-automations
branch
from
October 14, 2026 00:22
f8236a5 to
7146ddf
Compare
sentry-junior
Bot
force-pushed
the
feat/slack-channel-message-automations
branch
from
October 14, 2026 00:30
7146ddf to
cf6bbe7
Compare
sentry-junior
Bot
force-pushed
the
feat/slack-channel-message-automations
branch
from
October 14, 2026 00:38
cf6bbe7 to
f3a95f5
Compare
sentry-junior
Bot
force-pushed
the
feat/slack-channel-message-automations
branch
from
October 14, 2026 00:45
f3a95f5 to
81939f2
Compare
sentry-junior
Bot
force-pushed
the
feat/event-automation-run-limit
branch
from
October 14, 2026 00:51
9048c64 to
6d308ce
Compare
sentry-junior
Bot
force-pushed
the
feat/slack-channel-message-automations
branch
from
October 14, 2026 00:52
81939f2 to
a0486a4
Compare
sentry-junior
Bot
force-pushed
the
feat/slack-channel-message-automations
branch
from
October 14, 2026 01:00
a0486a4 to
8d0b11d
Compare
sentry-junior
Bot
force-pushed
the
feat/slack-channel-message-automations
branch
from
October 14, 2026 01:07
8d0b11d to
430ff9e
Compare
sentry-junior
Bot
force-pushed
the
feat/slack-channel-message-automations
branch
from
October 14, 2026 02:12
430ff9e to
e3a1576
Compare
dcramer
marked this pull request as ready for review
October 14, 2026 02:16
dcramer
approved these changes
Oct 14, 2026
Slack ingress now publishes slack/channel/message.posted for a new top-level channel message that no other route handles. Thread replies, mentions, subscribed threads, bots, and Junior's own messages do not publish. An automation can watch only the channel where it posts. The identifier current_channel names that channel, and create and edit reject other channels so private channel text cannot reach another channel. Runs always use system credentials because anyone in the channel writes the event text. Each run replies in the source message's thread. Watches cannot select the event. Rename pluginEventCatalog to automationEventCatalog because it now includes the core slack namespace. Refs #2078 Co-Authored-By: David Cramer <[email protected]>
Slack app and bot posts can carry a user id, so they passed the membership and author checks and ran channel-message automations. Skip events with a bot_id or the bot_message subtype, as the docs say. Co-Authored-By: David Cramer <[email protected]>
Remove the channel identifier normalizer, the redundant reply-thread channel check, and the timestamp fallback. Always register createEventAutomation for Slack actors, because Slack channel messages are always in the catalog. Shorten comments and README text. Co-Authored-By: David Cramer <[email protected]>
The removed plugin-disabled test dropped one setPlugins call. Co-Authored-By: David Cramer <[email protected]>
Co-Authored-By: David Cramer <[email protected]>
sentry-junior
Bot
force-pushed
the
feat/slack-channel-message-automations
branch
from
October 14, 2026 03:09
c036b2f to
999a344
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 999a344. Configure here.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

A channel owner can now say "when someone posts a new message in this channel, answer it if you can, otherwise tag me". Junior runs an Event automation for each new top-level message and replies in that message's thread. This is the discuss-channel triage case in #2078.
When Slack ingress drops a channel message (no mention, not a subscribed thread), it now publishes
slack/channel/message.postedtoingestEventAutomations. Thread replies and bot posts do not publish.chat/slack/channel-message-events.tsowns the registration, the Event, the channel scope rule, and the reply thread. Theslacknamespace is core owned, likejunior.The run's Destination adds the source message as
threadTs. The stored Destination stays the channel. The event key ischannel:ts, so Slack retries do not run twice. The run limit from #2117 still applies.Guardrails:
current_channel). Create and edit reject another channel, so private channel text stays in that channel.watchEventsrejects theslacknamespace.pluginEventCatalogis nowautomationEventCatalog, because it includes a core namespace.createEventAutomationis now always registered for Slack actors.Not in this PR: Workflow Builder posts (#2034), an "unanswered after N minutes" mode, a behavioral eval, and a check that Junior is a member of the channel.
Refs #2078
via David Cramer.
--
View Junior Session [Sentry]