From 7b92c888f576b78e87968f9688f9b4c2bcc0ca0d Mon Sep 17 00:00:00 2001 From: Sebastian Scholze <4063307+schlotze@users.noreply.github.com> Date: Thu, 2 Nov 2023 16:55:29 +0100 Subject: [PATCH] update gitlab access --- .../contexthandling/services/GitlabApiClient.java | 2 +- .../opensmartclide/context/monitoring/GitlabApiClientTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/smartclide-monitoring/src/main/java/org/eclipse/opensmartclide/contexthandling/services/GitlabApiClient.java b/smartclide-monitoring/src/main/java/org/eclipse/opensmartclide/contexthandling/services/GitlabApiClient.java index 2256930e..cf56be1c 100644 --- a/smartclide-monitoring/src/main/java/org/eclipse/opensmartclide/contexthandling/services/GitlabApiClient.java +++ b/smartclide-monitoring/src/main/java/org/eclipse/opensmartclide/contexthandling/services/GitlabApiClient.java @@ -41,7 +41,7 @@ public class GitlabApiClient { private static final Logger logger = LoggerFactory.getLogger(GitlabApiClient.class); private static final DateTimeFormatter formatter = DateTimeFormatter.ISO_DATE_TIME; private static final ZonedDateTime initialSinceDate = ZonedDateTime.of(2022, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC); - private static final String membershipParam = "&membership=true"; + private static final String membershipParam = "&membership=true&owned=true&topic=smartclide"; private static final String paginationParam = "&per_page=100"; private static final String refNameParam = "&ref_name="; private static final String sinceParam = "&since="; diff --git a/smartclide-monitoring/src/test/java/org/eclipse/opensmartclide/context/monitoring/GitlabApiClientTest.java b/smartclide-monitoring/src/test/java/org/eclipse/opensmartclide/context/monitoring/GitlabApiClientTest.java index 0818b9f2..1fc68557 100644 --- a/smartclide-monitoring/src/test/java/org/eclipse/opensmartclide/context/monitoring/GitlabApiClientTest.java +++ b/smartclide-monitoring/src/test/java/org/eclipse/opensmartclide/context/monitoring/GitlabApiClientTest.java @@ -13,7 +13,7 @@ public class GitlabApiClientTest { - private static final String gitlabBaseUri = "https://gitlab.dev.smartclide.eu"; + private static final String gitlabBaseUri = "https://gitlab.com"; private GitlabApiClient gitlabApiClient; @Before