ignore resolved issues

This commit is contained in:
Gitea 2023-12-27 03:39:49 +00:00
parent 5a37ffb1cf
commit 37a5d0ac43

View File

@ -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)
}
}