Repository navigation
Conversation
Adds a beta-issue-notify rule for core, frontend and home-assistant.io. On issues.milestoned it checks whether the milestone belongs to the release currently in beta (read off core's latest release: a prerelease 2026.12.0b2 means 2026.12.0) and emits a notify effect. Because it keys off the milestone, issues milestoned by hand are announced as well as ones the beta-milestone rule sets; the webhook handler now lets the bot's own issues.milestoned through for that. Cross-engine plumbing: the notify effect publishes typed notifications on an in-process bus (src/notifications). The Discord gateway subscribes, routes each topic to the channel a guild manifest names for it, renders an embed, and delivers each notification once per process. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SLHDn67HcX8nfhH55Vz6YF
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.
Deployment notes
issues.milestonedaction. The app already subscribes to theIssuesevent, so no new webhook subscription is needed.notificationsinsrc/discord/manifests/home-assistant.ts. That's why this PR is a draft.Proposed change
Posts newly reported beta issues from core, frontend and home-assistant.io to the Discord beta channel.
This PR is stacked on #184, which adds the
beta-milestonerule. Review and merge that one first. This PR's diff only shows the Discord part.The rule (
beta-issue-notify)issues.milestonedand asks Discord to announce the issue when the new milestone belongs to the release currently in beta.beta-milestonesets.2026.12.0b2, then2026.12.0is in beta. If the newest release is stable, no beta is running and nothing is announced. The source repo can be configured per manifest.webhook.service.tsdrops events caused by the bot's own writes. It now lets the bot's ownissues.milestonedthrough, so milestones set bybeta-milestoneare announced too.GitHub to Discord
notifyeffect that was sketched out in a comment inengine/types.ts. It now carries a typedNotificationdefined insrc/notifications/types.ts, one variant per topic.applyEffectspublishes notifications on an in-processNotificationBus. With no subscriber, for example when Discord is disabled, a notification is dropped. A subscriber's failure is logged and never fails the GitHub dispatch.notificationsfield that maps a topic to a channel ID.src/discord/engine/notify.tsturns each notification into asendMessageembed (issue title and link, repository, milestone, reporter). It sends each one only once per process.Engine additions: the
issues.milestonedevent (with the milestone's number, title and state),Issue.title(), andRuleContext.latestRelease(), cached for the rest of the webhook event.Type of change
Additional information
Open points for review:
2026.12.0). I couldn't check that.Checklist
mise run test). Your PR cannot be merged unless tests pass.mise run check).mise run format).If behaviour, configuration, or environment variables changed:
README.mdand.env.examplehave been updated accordingly.Generated by Claude Code