Compare commits

..

No commits in common. "master" and "1.5" have entirely different histories.
master ... 1.5

2 changed files with 8 additions and 11 deletions

View File

@ -1,11 +1,11 @@
<!--
~ Copyright © 2020 by elfuego.biz
~ Copyright © 2019 by elfuego.biz
-->
<idea-plugin>
<id>biz.elfuego.idea.issues.gitea</id>
<name>Gitea issues</name>
<version>1.6</version>
<version>1.5</version>
<vendor email="support@elfuego.biz" url="http://elfuego.biz">elfuego.biz</vendor>
<description><![CDATA[
@ -13,8 +13,8 @@
]]></description>
<change-notes><![CDATA[
Fixes errors with loading issues without limits (contributed by billlhead).<br>
Fixes searching for issues containing white spaces (contributed by billlhead).<br>
Added offset/limit processing.<br>
Implemented 'assigned to me' filter.<br>
]]>
</change-notes>

View File

@ -30,7 +30,6 @@ import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.io.InputStreamReader;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.*;
import java.util.function.Function;
@ -261,7 +260,7 @@ class GiteaRepository extends BaseRepositoryImpl {
StringBuilder qu = new StringBuilder();
if (query != null)
qu.append("?q=").append(URLEncoder.encode(query, "UTF-8"));
qu.append("?q=").append(query);
if (withClosed)
qu.append("&state=closed");
qu.append("&page=");
@ -297,11 +296,9 @@ class GiteaRepository extends BaseRepositoryImpl {
continue;
GiteaTaskImpl mapped = new GiteaTaskImpl(this, raw);
result.add(mapped);
if (limit > -1) {
limit--;
if (limit < 1)
return false;
}
limit--;
if (limit < 1)
return false;
}
return true;
}