From 37a5d0ac439e14894eda5d56f2ba7bfb42279fa5 Mon Sep 17 00:00:00 2001 From: Gitea Date: Wed, 27 Dec 2023 03:39:49 +0000 Subject: [PATCH] ignore resolved issues --- data.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data.go b/data.go index 46f2716..5512f0f 100644 --- a/data.go +++ b/data.go @@ -109,7 +109,8 @@ func (d *Data) update() { // Filter issues with old target versions out var issues = Issues{} for _, issue := range iss.Issues { - if strings.Compare(d.minimumVersion, issue.TargetVersion.Name) < 0 { + if issue.Resolution.Name == "open" && + strings.Compare(d.minimumVersion, issue.TargetVersion.Name) < 0 { issues = append(issues, issue) } }