-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add Discord notification template #29311
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR adds Discord notification templates for error tracking events and refactors existing templates for better consistency across platforms.
- Added new
error-tracking-issue-created
anderror-tracking-issue-reopened
sub-templates toSUB_TEMPLATE_COMMON
in/posthog/cdp/templates/hog_function_template.py
- Updated
/posthog/cdp/templates/discord/template_discord.py
with new sub-templates for error tracking notifications - Refactored
/posthog/cdp/templates/slack/template_slack.py
to use common sub-template definitions instead of hardcoded values - Modified
/posthog/cdp/templates/microsoft_teams/template_microsoft_teams.py
to reference centralized sub-template definitions for consistency
4 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile
description="", | ||
id=SUB_TEMPLATE_COMMON["error-tracking-issue-created"].id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Empty description field. Consider adding a descriptive message similar to other sub-templates for consistency.
description="", | |
id=SUB_TEMPLATE_COMMON["error-tracking-issue-created"].id, | |
description="Posts a message to Discord when a new issue is created", | |
id=SUB_TEMPLATE_COMMON["error-tracking-issue-created"].id, |
description="", | ||
id=SUB_TEMPLATE_COMMON["error-tracking-issue-reopened"].id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Empty description field. Consider adding a descriptive message similar to other sub-templates for consistency.
description="", | |
id=SUB_TEMPLATE_COMMON["error-tracking-issue-reopened"].id, | |
description="Posts a message to Discord when an issue is reopened", | |
id=SUB_TEMPLATE_COMMON["error-tracking-issue-reopened"].id, |
🙏 |
Problem
Add template to notify errors on Discord