aboutsummaryrefslogtreecommitdiffstats
path: root/cache
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-08-20 10:52:11 +0200
committerMichael Muré <batolettre@gmail.com>2022-08-20 10:52:11 +0200
commit8818d091e85087766d7f493b7dfaf1aedc3a4ab0 (patch)
treea3bd60a9f533fc6fc11a094038d095510210cd23 /cache
parent58df94d38d754bff4dcca11e2ae4b99326a9a87e (diff)
downloadgit-bug-8818d091e85087766d7f493b7dfaf1aedc3a4ab0.tar.gz
move bug.Status in entities/common for reuse
Diffstat (limited to 'cache')
-rw-r--r--cache/bug_excerpt.go3
-rw-r--r--cache/filter.go4
2 files changed, 4 insertions, 3 deletions
diff --git a/cache/bug_excerpt.go b/cache/bug_excerpt.go
index 94893d11..7e3bcad4 100644
--- a/cache/bug_excerpt.go
+++ b/cache/bug_excerpt.go
@@ -6,6 +6,7 @@ import (
"time"
"github.com/MichaelMure/git-bug/entities/bug"
+ "github.com/MichaelMure/git-bug/entities/common"
"github.com/MichaelMure/git-bug/entities/identity"
"github.com/MichaelMure/git-bug/entity"
"github.com/MichaelMure/git-bug/util/lamport"
@@ -27,7 +28,7 @@ type BugExcerpt struct {
EditUnixTime int64
AuthorId entity.Id
- Status bug.Status
+ Status common.Status
Labels []bug.Label
Title string
LenComments int
diff --git a/cache/filter.go b/cache/filter.go
index bd2bcfff..299e7c83 100644
--- a/cache/filter.go
+++ b/cache/filter.go
@@ -3,7 +3,7 @@ package cache
import (
"strings"
- "github.com/MichaelMure/git-bug/entities/bug"
+ "github.com/MichaelMure/git-bug/entities/common"
"github.com/MichaelMure/git-bug/entity"
"github.com/MichaelMure/git-bug/query"
)
@@ -18,7 +18,7 @@ type resolver interface {
type Filter func(excerpt *BugExcerpt, resolver resolver) bool
// StatusFilter return a Filter that match a bug status
-func StatusFilter(status bug.Status) Filter {
+func StatusFilter(status common.Status) Filter {
return func(excerpt *BugExcerpt, resolver resolver) bool {
return excerpt.Status == status
}