Skip to main content

open_pull_request

Function open_pull_request 

Source
pub async fn open_pull_request(
    title: &str,
    body: &str,
    base_branch: Option<&str>,
    head_branch: Option<&str>,
) -> PullRequestResult
Expand description

Pushes the current branch to origin and opens a Pull Request via the GitHub REST API.

Requires env var GITHUB_TOKEN. The PR body is scrubbed through redact::redact_secrets before being sent to GitHub.