Skip to content

Skip Slack notifications for non-publish HACS Data jobs - #981

Open
ludeeus wants to merge 1 commit into
mainfrom
claude/adoring-bardeen-oft5ff
Open

ludeeus wants to merge 1 commit into
mainfrom
claude/adoring-bardeen-oft5ff

Conversation

@ludeeus

@ludeeus ludeeus commented Oct 19, 2026

Copy link
Copy Markdown
Member

Summary

Added a filter to prevent Slack notifications from being sent for certain workflow jobs in the "Generate HACS Data" workflow.

Changes

  • Added a conditional check to skip Slack message notifications when:
    • The workflow name is "Generate HACS Data" AND
    • The job name does not start with "Publish "

This ensures that only "Publish" jobs from the HACS Data generation workflow trigger Slack notifications, while other jobs in that workflow are silently skipped.

Implementation Details

The filter is placed early in the execution flow, before the Slack message is constructed and sent, ensuring efficient early exit for non-matching jobs.

https://claude.ai/code/session_01YBrtn9mBrHxYa1Gbk2S5Hr

Waiting jobs in the Generate HACS Data workflow now send the Slack
notification only when the job name starts with "Publish ". Other
workflows are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YBrtn9mBrHxYa1Gbk2S5Hr
Copilot AI balanced review requested due to automatic review settings October 19, 2026 12:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The narrow filter matches the stated requirements, with no blocking issues identified.

No open issues 🎉

What changed in this PR

Limits Slack notifications for the “Generate HACS Data” workflow to jobs whose names start with Publish .

Changes:

  • Adds an early return for non-publish jobs before constructing or sending Slack messages.
  • Leaves notifications for other workflows unchanged.
File Description
src/​plugins/​workflow_job.waiting.slack.ts Filters out non-publish HACS Data jobs.

Review effort: Balanced

This branch has not been deployed

No deployments
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.

3 participants