From 853d3cd5ced6942b78b987d0c795cbaeaadd822f Mon Sep 17 00:00:00 2001 From: Ryan Levick Date: Fri, 29 Jul 2022 10:17:05 +0200 Subject: [PATCH] Mark revert rollup PR as a darft so that rustbot does not ping --- site/src/github.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site/src/github.rs b/site/src/github.rs index 0d81efd15..249a5221c 100644 --- a/site/src/github.rs +++ b/site/src/github.rs @@ -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")?; @@ -247,6 +248,7 @@ struct CreatePrRequest<'a> { base: &'a str, #[serde(rename = "body")] description: &'a str, + draft: bool, } #[derive(Debug, serde::Deserialize)] @@ -264,6 +266,7 @@ pub async fn create_pr( head: &str, base: &str, description: &str, + draft: bool, ) -> anyhow::Result { let timer_token = ctxt .config @@ -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))