Skip to content

feat: notify Slack on build failure#454

Merged
stackptr merged 1 commit intomainfrom
feat-ci-slack-notify
Apr 17, 2026
Merged

feat: notify Slack on build failure#454
stackptr merged 1 commit intomainfrom
feat-ci-slack-notify

Conversation

@stackptr
Copy link
Copy Markdown
Owner

@stackptr stackptr commented Apr 17, 2026

Adds a Slack notification to the build job that fires on failure, for both PR and push-to-main contexts.

Changes

  • New Prepare Slack context step computes the trigger string (PR or push) and short SHA as step outputs
  • New Notify Slack on failure step uses slackapi/slack-github-action@v2 with a Block Kit payload: red-bordered attachment, header, two-column section (host + trigger), and a context line with linked repo, commit, and run URL
  • Requires a SLACK_WEBHOOK_UPDATES_CI repository secret (incoming webhook for #updates)

Verify

  • Confirm SLACK_WEBHOOK_UPDATES_CI secret is set before merging
  • Trigger a deliberate build failure on a PR and a push to main to confirm both message shapes render correctly in Slack

@stackptr stackptr marked this pull request as ready for review April 17, 2026 00:18
Copy link
Copy Markdown
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@stackptr stackptr enabled auto-merge (squash) April 17, 2026 00:23
@stackptr stackptr merged commit 9e06193 into main Apr 17, 2026
5 checks passed
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.

1 participant