mirror of
https://github.com/e1fueg0/intellij-gitea-plugin.git
synced 2025-06-07 18:04:06 +00:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
f16e8ff7da | ||
|
2f14392e1e | ||
|
1f7fcd7d03 | ||
|
e5e3e84b23 |
@ -1,11 +1,11 @@
|
|||||||
<!--
|
<!--
|
||||||
~ Copyright © 2019 by elfuego.biz
|
~ Copyright © 2020 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.5</version>
|
<version>1.6</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[
|
||||||
Added offset/limit processing.<br>
|
Fixes errors with loading issues without limits (contributed by billlhead).<br>
|
||||||
Implemented 'assigned to me' filter.<br>
|
Fixes searching for issues containing white spaces (contributed by billlhead).<br>
|
||||||
]]>
|
]]>
|
||||||
</change-notes>
|
</change-notes>
|
||||||
|
|
||||||
|
@ -30,6 +30,7 @@ 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;
|
||||||
@ -260,7 +261,7 @@ class GiteaRepository extends BaseRepositoryImpl {
|
|||||||
|
|
||||||
StringBuilder qu = new StringBuilder();
|
StringBuilder qu = new StringBuilder();
|
||||||
if (query != null)
|
if (query != null)
|
||||||
qu.append("?q=").append(query);
|
qu.append("?q=").append(URLEncoder.encode(query, "UTF-8"));
|
||||||
if (withClosed)
|
if (withClosed)
|
||||||
qu.append("&state=closed");
|
qu.append("&state=closed");
|
||||||
qu.append("&page=");
|
qu.append("&page=");
|
||||||
@ -296,10 +297,12 @@ 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