Skip to content

Commit e61f35d

Browse files
Merge pull request #1371 from rylev/draft-revert-rollup-pr
Mark revert rollup PR as a draft so that rustbot does not ping
2 parents 6ace834 + 853d3cd commit e61f35d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

site/src/github.rs

+4
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ pub async fn pr_and_try_for_rollup(
6464
r? @ghost",
6565
origin_url, branch.rolled_up_pr_number
6666
),
67+
true,
6768
)
6869
.await
6970
.context("Created PR")?;
@@ -247,6 +248,7 @@ struct CreatePrRequest<'a> {
247248
base: &'a str,
248249
#[serde(rename = "body")]
249250
description: &'a str,
251+
draft: bool,
250252
}
251253

252254
#[derive(Debug, serde::Deserialize)]
@@ -264,6 +266,7 @@ pub async fn create_pr(
264266
head: &str,
265267
base: &str,
266268
description: &str,
269+
draft: bool,
267270
) -> anyhow::Result<CreatePrResponse> {
268271
let timer_token = ctxt
269272
.config
@@ -279,6 +282,7 @@ pub async fn create_pr(
279282
head,
280283
base,
281284
description,
285+
draft,
282286
})
283287
.header(USER_AGENT, "perf-rust-lang-org-server")
284288
.basic_auth("rust-timer", Some(timer_token))

0 commit comments

Comments
 (0)