From 51c1efa7a860831431b65c6aa6d899ada8db6af2 Mon Sep 17 00:00:00 2001
From: Adam Moss <adam-moss@users.noreply.github.com>
Date: Fri, 6 Apr 2018 10:31:34 +0100
Subject: [PATCH] fix(gitlab-reviewer): change from error to warning (#1803)

GitLab as of v10.6 has a API end point for Merge Request Approvals
which equates to the Reviewer functionality in GitHub.  This is available
to both GitLab.com and EES or above on-prem users.

See https://docs.gitlab.com/ee/api/merge_request_approvals.html#merge-request-level-approvals

Signed-off-by: Adam Moss <adam.moss@bcs.org.uk>
---
 lib/platform/gitlab/index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/platform/gitlab/index.js b/lib/platform/gitlab/index.js
index 47ab4915af..8c3ffb5a81 100644
--- a/lib/platform/gitlab/index.js
+++ b/lib/platform/gitlab/index.js
@@ -370,7 +370,7 @@ async function addAssignees(iid, assignees) {
 
 function addReviewers(iid, reviewers) {
   logger.debug(`addReviewers('${iid}, '${reviewers})`);
-  logger.error('No reviewer functionality in GitLab');
+  logger.warn('Unimplemented in GitLab: approvals');
 }
 
 async function ensureComment() {
-- 
GitLab