{% extends "config/base.html" %} {% import "site_shell/_macros.html" as ui %} {% block title %}Add Notification Rule - Pychestrate Configuration{% endblock %} {% block content %} {{ ui.breadcrumb([("Notifications", url_for('config.notifications_overview')), ("Add Rule", None)]) }} {% if not channels %} {{ ui.empty_state("There is no channel to send through yet.", hint="Add a channel first, then come back to add a rule.", action_url=url_for('config.notification_channel_create'), action_label="Add Channel") }} {% else %}
{{ ui.error_summary(errors, error_labels) }}

When *

{% for event in events %} {% endfor %}
Each event you tick gets a rule with the message text that fits it.
{{ ui.field_error(errors, 'events') }}
{{ ui.field_error(errors, 'project_id') }}

Send through *

{% for channel in channels %} {% endfor %} {{ ui.field_error(errors, 'channel_ids') }}
One per line. For email, addresses. For Slack, a channel such as #builds. For Teams, PagerDuty and webhooks, any label.
{{ ui.field_error(errors, 'recipients') }}
The most messages this rule sends in a minute, so a broken pipeline cannot flood a channel. Empty means no limit.
{{ ui.field_error(errors, 'rate_limit_per_minute') }}
Cancel
{% endif %} {% endblock %}