Skip to content

Docs self-healing workflow improvements: Add Slack notification#3072

Merged
pwizla merged 9 commits intomainfrom
repo/self-healing-slack-notification
Apr 17, 2026
Merged

Docs self-healing workflow improvements: Add Slack notification#3072
pwizla merged 9 commits intomainfrom
repo/self-healing-slack-notification

Conversation

@pwizla
Copy link
Copy Markdown
Collaborator

@pwizla pwizla commented Apr 17, 2026

Summary

Posts a summary to #documentation-ops via Slack incoming webhook after each self-healing run.

Messages by scenario:

  • No PRs after pre-filter → :white_check_mark: No candidate PRs
  • Triage eliminated all → :white_check_mark: Triage eliminated all PRs
  • Router found no targets → :mag: No documentation targets
  • Doc PRs created → :tada: X doc PR(s) created with links
  • Errors → :x: Errors listed

Each message includes a link to the GitHub Actions run.

Requires: SLACK_WEBHOOK_DOCUMENTATION_OPS secret (already configured).

Non-blocking: if the webhook fails, the workflow still succeeds.

Test plan

  • workflow_dispatch → verify Slack message appears in #documentation-ops
  • Check message formatting (links, emoji, line breaks)
  • Remove webhook secret temporarily → verify workflow still succeeds

🤖 Generated with Claude Code

pwizla and others added 7 commits April 16, 2026 23:04
The Write tool is denied by permissionMode: default in
claude-code-action. Triage and Router must use Bash heredoc
to write their result files to /tmp/.

Fixes #3065

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Haiku treated the previous prompt as a role description and waited
for instructions. Rewritten to say "Execute these steps NOW" with
no preamble. Also removed chatty framing.

Fix #3065

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Previously fell back to passing all PRs to Router, wasting tokens.
Now stops cleanly and reports the failure in the summary.

Fixes #3065

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Posts a summary to Slack via incoming webhook with:
- Run result (no PRs / triage skip / router skip / PRs created)
- Links to created doc PRs
- Errors if any
- Link to the GitHub Actions run for details

Non-blocking: if webhook fails, run still succeeds.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
documentation Ready Ready Preview, Comment Apr 17, 2026 1:06pm

Request Review

@github-actions github-actions Bot added internal PRs created by the Strapi core team pr: updated content PRs updating existing documentation content source: repo PRs/issues not targeting a specific documentation but rather affecting the whole repo labels Apr 17, 2026
- :noted: instead of 🎉 when doc PRs are created
- 🚨 message when any step fails
- Checks job.status for failure detection

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
:pepe_alarm: for failures, :frog_shrug: for router skip,
⚠️ for errors.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pwizla pwizla marked this pull request as ready for review April 17, 2026 13:07
@pwizla pwizla requested a review from derrickmehaffy as a code owner April 17, 2026 13:07
@pwizla pwizla self-assigned this Apr 17, 2026
@pwizla pwizla added pr: chore and removed pr: updated content PRs updating existing documentation content labels Apr 17, 2026
@pwizla pwizla added this to the 6.22.0 milestone Apr 17, 2026
@pwizla pwizla merged commit c6dd18c into main Apr 17, 2026
10 checks passed
@pwizla pwizla deleted the repo/self-healing-slack-notification branch April 17, 2026 13:07
@pwizla pwizla removed the request for review from derrickmehaffy April 17, 2026 13:42
@pwizla pwizla changed the title Add Slack notification to self-healing workflow Docs self-healing workflow improvements: Add Slack notification Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal PRs created by the Strapi core team pr: chore source: repo PRs/issues not targeting a specific documentation but rather affecting the whole repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant