aboutsummaryrefslogtreecommitdiff
path: root/issues.go
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@codeblau.de>2024-09-27 12:12:55 +0200
committerÖzgür Kesim <oec@codeblau.de>2024-09-27 12:12:55 +0200
commitdec70c98a8c80548943ca8cf8e47e8c04b9299d7 (patch)
treef0504334783c9bb013d2655e3908d90dfa5efc0a /issues.go
parent57285c12c11ea0bf7b39af2cfc770340a222913a (diff)
added no. of issues and features to column header
Diffstat (limited to 'issues.go')
-rw-r--r--issues.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/issues.go b/issues.go
index 3c49b4c..3bda1fd 100644
--- a/issues.go
+++ b/issues.go
@@ -212,6 +212,16 @@ func (i Issues) ByCategory(cat string) (issues Issues) {
return issues
}
+func (i Issues) ByTarget(tar string) (issues Issues) {
+ for _, is := range i {
+ if is.TargetVersion.Name == tar {
+ issues = append(issues, is)
+ }
+ }
+ sort.Sort(sort.Reverse(ByHandlerAndId(issues)))
+ return
+}
+
func (i Issues) ByCategoryAndTarget(cat, tar string) (issues Issues) {
for _, is := range i {
if is.TargetVersion.Name == tar &&