Skip to main content

new_pull_request_url

Function new_pull_request_url 

Source
pub fn new_pull_request_url(
    kind: IntegrationKind,
    web_base: &str,
    project: &str,
    source: &str,
    target: Option<&str>,
) -> String
Expand description

Builds the “open a compare/new pull-request page” URL by hand: the no-token fallback, and what a token-holding flow opens on success too (see client::HostingClient::create_pull_request).

web_base and project are remote_web_base’s output; source is the branch to merge from, target the branch to merge into (the host’s default when None).