From fe50cf2bc13a500b03c309c9b1bd0e7039268ba9 Mon Sep 17 00:00:00 2001 From: Benn Bollay Date: Sat, 27 May 2023 22:25:23 -0700 Subject: [PATCH] Consider `ITEM_PENDING_REVIEW` successful (#67) --- package.json | 2 +- util.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e227d9e..62ae0c9 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "ava": "^5.2.0", "execa": "^7.0.0", "is-stream": "^3.0.0", - "xo": "^0.53.1" + "xo": "^0.54.2" }, "engines": { "node": "^14.13.1 || >=16.0.0" diff --git a/util.js b/util.js index 2cf89bc..629f3a1 100644 --- a/util.js +++ b/util.js @@ -11,6 +11,11 @@ export function handlePublishStatus(item) { return; } + if (firstStatus === 'ITEM_PENDING_REVIEW') { + console.log('Publish pending review'); + return; + } + throw item; }