create_issue

Function create_issue 

Source
pub async fn create_issue(
    client: &Octocrab,
    owner: &str,
    repo: &str,
    title: &str,
    body: &str,
) -> Result<(String, u64)>
Expand description

Creates a new GitHub issue.

Posts a new issue with the given title and body to the repository. Returns the issue URL and issue number.

§Arguments

  • client - Authenticated Octocrab client
  • owner - Repository owner
  • repo - Repository name
  • title - Issue title
  • body - Issue body (markdown)

§Errors

Returns an error if the GitHub API call fails.