pub async fn open_pull_request(
title: &str,
body: &str,
base_branch: Option<&str>,
head_branch: Option<&str>,
) -> PullRequestResultExpand 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.