Skip to main content

create_pr

Function create_pr 

Source
pub fn create_pr(
    token: &str,
    repo: &Repo,
    title: &str,
    head: &str,
    base: &str,
    body: &str,
) -> Result<ExistingPr>
Expand description

Opens a pull request from head into base.

ยงErrors

Returns an error when the GitHub client cannot be built or the create request fails, for example when head does not exist. It also returns one when the response carries no URL.