Update github and jenkins url
This commit is contained in:
@@ -106,7 +106,7 @@ index 80553face9c70c2a3d897681e7761df85b22d464..c4831e424782b83ae81b4b948ff52c25
|
||||
if (stream != null) {
|
||||
diff --git a/src/main/java/su/plo/matter/MatterVersionFetcher.java b/src/main/java/su/plo/matter/MatterVersionFetcher.java
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..3de5c2def719c799a2f497e43e18359ff50ff948
|
||||
index 0000000000000000000000000000000000000000..329f4d8014f13e442a29fd5467fd0214db35f9a9
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/su/plo/matter/MatterVersionFetcher.java
|
||||
@@ -0,0 +1,137 @@
|
||||
@@ -142,8 +142,8 @@ index 0000000000000000000000000000000000000000..3de5c2def719c799a2f497e43e18359f
|
||||
+ private static final Logger LOGGER = Logger.getLogger("MatterVersionFetcher");
|
||||
+ private static final HttpClient client = HttpClient.newHttpClient();
|
||||
+
|
||||
+ private static final URI JENKINS_URI = URI.create("https://matter.plo.su/job/Matter-1.18/lastSuccessfulBuild/buildNumber");
|
||||
+ private static final String GITHUB_FORMAT = "https://api.github.com/repos/plasmoapp/matter/compare/ver/pufferfish-1.18...%s";
|
||||
+ private static final URI JENKINS_URI = URI.create("https://matter.plo.su/job/Matter-1.19/lastSuccessfulBuild/buildNumber");
|
||||
+ private static final String GITHUB_FORMAT = "https://api.github.com/repos/plasmoapp/matter/compare/ver/pufferfish-1.19...%s";
|
||||
+
|
||||
+ private static final HttpResponse.BodyHandler<JsonObject> JSON_OBJECT_BODY_HANDLER = responseInfo -> HttpResponse.BodySubscribers.mapping(
|
||||
+ HttpResponse.BodySubscribers.ofString(StandardCharsets.UTF_8),
|
||||
@@ -247,4 +247,3 @@ index 0000000000000000000000000000000000000000..3de5c2def719c799a2f497e43e18359f
|
||||
+ return text("Previous version: " + oldVersion, NamedTextColor.GRAY, TextDecoration.ITALIC);
|
||||
+ }
|
||||
+}
|
||||
\ No newline at end of file
|
||||
|
||||
Reference in New Issue
Block a user