pub async fn create_issue(
title: &str,
body: &str,
repo: &str,
) -> Result<(CreateIssueResponse, AiStats)>Expand description
Creates a formatted GitHub issue using AI assistance.
Takes raw issue title and body, formats them professionally using the configured AI provider. Returns formatted title, body, and suggested labels.
§Arguments
title- Raw issue title from userbody- Raw issue body/description from userrepo- Repository name for context (owner/repo format)
§Errors
Returns an error if AI formatting fails or API is unavailable.