This is an automated email from the ASF dual-hosted git repository.
sk0x50 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-teamcity-bot.git
The following commit(s) were added to refs/heads/master by this push:
new 64cfe7b Added ability to use a team tag with more than 2 characters.
64cfe7b is described below
commit 64cfe7b529f0d274df4c02aaffdc208ec45e02a5
Author: sergeyuttsel <[email protected]>
AuthorDate: Wed Oct 21 11:06:25 2020 +0300
Added ability to use a team tag with more than 2 characters.
Signed-off-by: Slava Koptilin <[email protected]>
---
.../java/org/apache/ignite/tcbot/engine/ui/BoardDefectSummaryUi.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/tcbot-engine/src/main/java/org/apache/ignite/tcbot/engine/ui/BoardDefectSummaryUi.java
b/tcbot-engine/src/main/java/org/apache/ignite/tcbot/engine/ui/BoardDefectSummaryUi.java
index 6f1c90e..035aefe 100644
---
a/tcbot-engine/src/main/java/org/apache/ignite/tcbot/engine/ui/BoardDefectSummaryUi.java
+++
b/tcbot-engine/src/main/java/org/apache/ignite/tcbot/engine/ui/BoardDefectSummaryUi.java
@@ -24,6 +24,7 @@ import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.function.Function;
+import java.util.regex.Pattern;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.apache.ignite.tcbot.engine.board.IssueResolveStatus;
@@ -32,6 +33,7 @@ import org.apache.ignite.tcbot.engine.defect.DefectCompacted;
import org.apache.ignite.tcbot.persistence.IStringCompactor;
public class BoardDefectSummaryUi {
+ private static final Pattern teamTagPattern = Pattern.compile("\\D+");
private final transient DefectCompacted defect;
private final transient IStringCompactor compactor;
@@ -49,7 +51,7 @@ public class BoardDefectSummaryUi {
public Set<String> getTags() {
//todo bad code, make tag filter configurable.
- return tags.stream().filter(t -> t.length() <=
2).collect(Collectors.toSet());
+ return tags.stream().filter(t ->
teamTagPattern.matcher(t).matches()).collect(Collectors.toSet());
}
public List<String> getSuites() {