From 4913b40380df8b21e7585cc49f3a59fbaa1a2c67 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+github@gmail.com>
Date: Fri, 18 Feb 2022 08:45:41 +0100
Subject: [PATCH] do not show confidential issues, re !4

---
 controllers/merge.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/controllers/merge.php b/controllers/merge.php
index fd91e4e..9ad0002 100644
--- a/controllers/merge.php
+++ b/controllers/merge.php
@@ -51,6 +51,10 @@ final class MergeController extends TracToGitlab\GitlabController
         );
 
         $issues = array_filter($issues, function ($issue) {
+            if ($issue['confidential']) {
+                return false;
+            }
+
             foreach (['worksforme', 'wontfix', 'Duplicate', 'invalid'] as $label) {
                 if (in_array($label, $issue['labels'])) {
                     return false;
-- 
GitLab