From 22d82d9a7e384cfc1ef02d08c31a244396855a32 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Mon, 7 Jun 2021 15:22:14 +0200
Subject: [PATCH] fix(dashboard): handle update-not-scheduled PRs (#10337)

Closes #9275
---
 lib/workers/branch/__snapshots__/index.spec.ts.snap | 2 +-
 lib/workers/branch/index.ts                         | 2 +-
 lib/workers/types.ts                                | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/workers/branch/__snapshots__/index.spec.ts.snap b/lib/workers/branch/__snapshots__/index.spec.ts.snap
index 945f5c3f24..567b322f4c 100644
--- a/lib/workers/branch/__snapshots__/index.spec.ts.snap
+++ b/lib/workers/branch/__snapshots__/index.spec.ts.snap
@@ -220,7 +220,7 @@ exports[`workers/branch/index processBranch skips branch if not scheduled and no
 Object {
   "branchExists": true,
   "prNo": undefined,
-  "result": "not-scheduled",
+  "result": "update-not-scheduled",
 }
 `;
 
diff --git a/lib/workers/branch/index.ts b/lib/workers/branch/index.ts
index bb71ec0f49..df50fb0dce 100644
--- a/lib/workers/branch/index.ts
+++ b/lib/workers/branch/index.ts
@@ -241,7 +241,7 @@ export async function processBranch(
         return {
           branchExists,
           prNo: branchPr?.number,
-          result: BranchResult.NotScheduled,
+          result: BranchResult.UpdateNotScheduled,
         };
       }
       // istanbul ignore if
diff --git a/lib/workers/types.ts b/lib/workers/types.ts
index d9a19e7fdf..248d451352 100644
--- a/lib/workers/types.ts
+++ b/lib/workers/types.ts
@@ -89,6 +89,7 @@ export enum BranchResult {
   CommitLimitReached = 'commit-limit-reached',
   BranchLimitReached = 'branch-limit-reached',
   Rebase = 'rebase',
+  UpdateNotScheduled = 'update-not-scheduled',
 }
 
 export interface BranchConfig
-- 
GitLab