Skip to content

Add Notion metrics logging for self-healing runs#3079

Draft
pwizla wants to merge 2 commits intomainfrom
repo/self-healing-notion-metrics
Draft

Add Notion metrics logging for self-healing runs#3079
pwizla wants to merge 2 commits intomainfrom
repo/self-healing-notion-metrics

Conversation

@pwizla
Copy link
Copy Markdown
Collaborator

@pwizla pwizla commented Apr 21, 2026

This PR adds automatic metrics logging to a Notion database after each self-healing run, enabling long-term tracking and a future metrics dashboard.

Summary

  • New workflow step that logs per-run metrics to a Notion database via API
  • Metrics tracked: PRs merged, filtered by bash, sent to Haiku, rejected by Haiku, drafted by Sonnet, doc PRs created, error details
  • Retrospective metrics: PRs merged as-is by Pierre, PRs rejected by Pierre (collected from previous runs)
  • Gracefully skipped if Notion secrets are not configured

Test plan

  • Add secrets and trigger a manual workflow run
  • Verify a new row appears in the Notion database with correct values
  • Verify the step is skipped gracefully when secrets are missing

🤖 Generated with Claude Code

Logs per-run metrics (PRs merged, filtered, triaged, drafted, created)
plus retrospective data (merged as-is, rejected) to a Notion database.
Requires NOTION_API_KEY and NOTION_SELF_HEALING_DB secrets.

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

vercel Bot commented Apr 21, 2026

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

Project Deployment Actions Updated (UTC)
documentation Ready Ready Preview, Comment Apr 22, 2026 10:10am

Request Review

@github-actions github-actions Bot added pr: updated content PRs updating existing documentation content source: repo PRs/issues not targeting a specific documentation but rather affecting the whole repo internal PRs created by the Strapi core team labels Apr 21, 2026
@pwizla pwizla marked this pull request as draft April 21, 2026 12:26
@pwizla pwizla self-assigned this Apr 21, 2026
@pwizla pwizla added pr: chore and removed pr: updated content PRs updating existing documentation content labels Apr 21, 2026
Tracks PRs that Pierre merged after making changes (>1 commit),
distinct from merged as-is (1 commit) and rejected (closed without merge).

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

@pwizla pwizla left a comment

Choose a reason for hiding this comment

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

LGTM

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