Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark revert rollup PR as a draft so that rustbot does not ping #1371

Merged
merged 1 commit into from
Jul 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions site/src/github.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ pub async fn pr_and_try_for_rollup(
r? @ghost",
origin_url, branch.rolled_up_pr_number
),
true,
)
.await
.context("Created PR")?;
Expand Down Expand Up @@ -247,6 +248,7 @@ struct CreatePrRequest<'a> {
base: &'a str,
#[serde(rename = "body")]
description: &'a str,
draft: bool,
}

#[derive(Debug, serde::Deserialize)]
Expand All @@ -264,6 +266,7 @@ pub async fn create_pr(
head: &str,
base: &str,
description: &str,
draft: bool,
) -> anyhow::Result<CreatePrResponse> {
let timer_token = ctxt
.config
Expand All @@ -279,6 +282,7 @@ pub async fn create_pr(
head,
base,
description,
draft,
})
.header(USER_AGENT, "perf-rust-lang-org-server")
.basic_auth("rust-timer", Some(timer_token))
Expand Down