Skip to main content

create_issue

Function create_issue 

Source
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 user
  • body - Raw issue body/description from user
  • repo - Repository name for context (owner/repo format)

§Errors

Returns an error if AI formatting fails or API is unavailable.