Skip to content

Commit

The API opens a pull request as a draft with "draft": true

syntaqxcommitted Parent8ead240Browse files
3 files+3−00/3 viewed
+1−0
46924692 .unwrap_or_else(|| if g1t_contracts::rules::is_agent(&user) { "agent".into() } else { user.username.clone() }),
46934693 runtime: Runtime::External,
46944694 base: optional_text(input, "base"),
4695+ draft: input.get("draft").and_then(|value| value.as_bool()).unwrap_or(false),
46954696 },
46964697 )
46974698 .await?;
+1−0
514514 runtime: Runtime::External,
515515 // Security updates are for the default branch.
516516 base: None,
517+ draft: false,
517518 },
518519 )
519520 .await?;
+1−0
924924 runtime: Runtime::External,
925925 // Into `target-branch`, which it was made from.
926926 base: row.bump().and_then(|bump| bump.base),
927+ draft: false,
927928 },
928929 )
929930 .await?;