From 8b7ece63161404dc3774083fd63959e0017d049f Mon Sep 17 00:00:00 2001 From: Sara Tan Date: Thu, 16 Jan 2020 15:20:19 +0000 Subject: [PATCH] Fix label filter (#15) --- src/autoupdater.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/autoupdater.js b/src/autoupdater.js index 45c18ef4..adde3a23 100644 --- a/src/autoupdater.js +++ b/src/autoupdater.js @@ -160,9 +160,9 @@ class AutoUpdater { } for (const label of pull.labels) { - if (label.name in labels) { + if (labels.includes(label.name)) { ghCore.info( - `Pull request has label '${label}' and PR branch is behind base branch.` + `Pull request has label '${label.name}' and PR branch is behind base branch.` ); return true; }