Conversation
Contributor
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/cli@0.0.32-pr.267.87f4f96Prefer not to change any import paths? Install using npm alias so your code still imports npm i "base44@npm:@base44-preview/cli@0.0.32-pr.267.87f4f96"Or add it to your {
"dependencies": {
"base44": "npm:@base44-preview/cli@0.0.32-pr.267.87f4f96"
}
}
Preview published to npm registry — try new features instantly! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Description
This PR introduces a GitHub Actions workflow that runs daily at 08:00 UTC to automatically triage CLI errors captured in PostHog. It runs two HogQL queries to fetch aggregated error summaries and detailed event logs, then hands the data to Claude Code, which reads source files to perform root cause analysis, checks for recurring errors across previous daily reports and existing open issues, and creates a structured, labeled GitHub issue. If no significant errors are found, the workflow skips issue creation and writes a brief note to the Actions step summary instead.
Related Issue
None
Type of Change
Changes Made
.github/workflows/daily-error-report.yml— a scheduled workflow (daily at 08:00 UTC) that also supports manual dispatch with a configurablehourslook-back parameter (default: 24h)error_code/is_user_error) and a detailed per-event log (last 50 events), saved as JSONL to/tmp/anthropics/claude-code-action@v1, which is prompted to: check existingerror-reportissues for recurrence, search for matching open issues, read relevant source files for root cause analysis, classify system vs. user errors, and create a labeled GitHub issue following a structured template@wix.com/@base44.com) in reports without excluding themRead,Glob,Grep,cat /tmp/*, and scopedgh issuecommandsTesting
npm test)Checklist
docs/(AGENTS.md) if I made architectural changesAdditional Notes
Three secrets/variables must be configured in the repository before this workflow can run:
POSTHOG_CLI_API_KEY— PostHog personal API token (secret)POSTHOG_PROJECT_ID— PostHog project/environment ID (repository variable)CLAUDE_CODE_OAUTH_TOKEN— OAuth token for the Claude Code GitHub Action (secret)The workflow requires
issues: writeandid-token: writepermissions. Theid-token: writepermission is needed by the Claude Code action for OIDC-based authentication.🤖 Generated by Claude | 2026-02-18 23:30 UTC