Skip to main content

Module failure_handler

Module failure_handler 

Source
Expand description

Failure handler for start-command

Handles command failures - detects repository, uploads logs, creates issues

Structs§

Config
Configuration for the failure handler
RepoInfo
Repository information

Functions§

can_create_issue
Check if we can create an issue in a repository
create_issue
Create an issue in the repository
detect_repository
Detect repository URL for a command (currently supports NPM global packages)
ensure_gh_upload_log_available
Install gh-upload-log with an available JavaScript package manager.
handle_failure
Handle command failure - detect repository, upload log, create issue
is_gh_authenticated
Check if GitHub CLI is authenticated
is_gh_upload_log_available
Check if gh-upload-log is available
parse_git_url
Parse a git URL to extract owner, repo, and normalized URL
upload_log
Upload log file using gh-upload-log
upload_log_interactive
Upload a log file with gh-upload-log and stream its output to the terminal.