From 31b2867df3d9d281655a74e422dbd2a7c08ce654 Mon Sep 17 00:00:00 2001
From: Michael Kriese <michael.kriese@visualon.de>
Date: Thu, 6 Aug 2020 08:42:37 +0200
Subject: [PATCH] feat(azure): add draft pr support (#6923)

Co-authored-by: Rhys Arkins <rhys@arkins.net>
---
 lib/platform/azure/index.ts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/platform/azure/index.ts b/lib/platform/azure/index.ts
index f2bab9aefa..51040110fb 100644
--- a/lib/platform/azure/index.ts
+++ b/lib/platform/azure/index.ts
@@ -340,6 +340,7 @@ export async function createPr({
   prTitle: title,
   prBody: body,
   labels,
+  draftPR = false,
   platformOptions = {},
 }: CreatePRConfig): Promise<Pr> {
   const sourceRefName = azureHelper.getNewBranchName(branchName);
@@ -358,6 +359,7 @@ export async function createPr({
       title,
       description,
       workItemRefs,
+      isDraft: draftPR,
     },
     config.repoId
   );
-- 
GitLab