mirror of
https://github.com/e1fueg0/intellij-gitea-plugin.git
synced 2025-06-09 02:44:03 +00:00
Compare commits
No commits in common. "master" and "1.5" have entirely different histories.
@ -1,11 +1,11 @@
|
|||||||
<!--
|
<!--
|
||||||
~ Copyright © 2020 by elfuego.biz
|
~ Copyright © 2019 by elfuego.biz
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<idea-plugin>
|
<idea-plugin>
|
||||||
<id>biz.elfuego.idea.issues.gitea</id>
|
<id>biz.elfuego.idea.issues.gitea</id>
|
||||||
<name>Gitea issues</name>
|
<name>Gitea issues</name>
|
||||||
<version>1.6</version>
|
<version>1.5</version>
|
||||||
<vendor email="support@elfuego.biz" url="http://elfuego.biz">elfuego.biz</vendor>
|
<vendor email="support@elfuego.biz" url="http://elfuego.biz">elfuego.biz</vendor>
|
||||||
|
|
||||||
<description><![CDATA[
|
<description><![CDATA[
|
||||||
@ -13,8 +13,8 @@
|
|||||||
]]></description>
|
]]></description>
|
||||||
|
|
||||||
<change-notes><![CDATA[
|
<change-notes><![CDATA[
|
||||||
Fixes errors with loading issues without limits (contributed by billlhead).<br>
|
Added offset/limit processing.<br>
|
||||||
Fixes searching for issues containing white spaces (contributed by billlhead).<br>
|
Implemented 'assigned to me' filter.<br>
|
||||||
]]>
|
]]>
|
||||||
</change-notes>
|
</change-notes>
|
||||||
|
|
||||||
|
@ -30,7 +30,6 @@ import org.jetbrains.annotations.NotNull;
|
|||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
import java.net.URLEncoder;
|
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
@ -261,7 +260,7 @@ class GiteaRepository extends BaseRepositoryImpl {
|
|||||||
|
|
||||||
StringBuilder qu = new StringBuilder();
|
StringBuilder qu = new StringBuilder();
|
||||||
if (query != null)
|
if (query != null)
|
||||||
qu.append("?q=").append(URLEncoder.encode(query, "UTF-8"));
|
qu.append("?q=").append(query);
|
||||||
if (withClosed)
|
if (withClosed)
|
||||||
qu.append("&state=closed");
|
qu.append("&state=closed");
|
||||||
qu.append("&page=");
|
qu.append("&page=");
|
||||||
@ -297,12 +296,10 @@ class GiteaRepository extends BaseRepositoryImpl {
|
|||||||
continue;
|
continue;
|
||||||
GiteaTaskImpl mapped = new GiteaTaskImpl(this, raw);
|
GiteaTaskImpl mapped = new GiteaTaskImpl(this, raw);
|
||||||
result.add(mapped);
|
result.add(mapped);
|
||||||
if (limit > -1) {
|
|
||||||
limit--;
|
limit--;
|
||||||
if (limit < 1)
|
if (limit < 1)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user