Skip to content

Feature/slack notifications#139

Merged
vancoder merged 12 commits intodevelopfrom
feature/slack-notifications
Feb 11, 2026
Merged

Feature/slack notifications#139
vancoder merged 12 commits intodevelopfrom
feature/slack-notifications

Conversation

@vancoder
Copy link
Copy Markdown
Contributor

This PR adds basic Slack notification handling to the plugin. A new field for a Slack webhook URL is added to the plugin's settings. When a log is triggered at ALERT status (or above), the associated log message will be sent to the Slack channel, if a webhook URL has been defined.

This also lays some groundwork should anyone address this issue.

Copy link
Copy Markdown
Member

@jakewrfoster jakewrfoster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐒 LGTM

$webhook_url = Settings::instance()->get( 'slack_webhook_url' ) ?: '';

$args = wp_parse_args( $args, [
'channel' => null,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should channel be surfaced in the settings? or should it be required? (I'm not sure if the channel is elected via the url or not, so disregard if the channel election is handled downstream of here.)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The webhook URL is channel specific - so it is handled downstream.

@vancoder vancoder merged commit a8465cf into develop Feb 11, 2026
6 checks passed
@vancoder vancoder deleted the feature/slack-notifications branch February 11, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants