aboutsummaryrefslogtreecommitdiffstats
path: root/cache/bug_cache.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-01-20 15:41:27 +0100
committerMichael Muré <batolettre@gmail.com>2019-03-01 22:40:22 +0100
commit14b240af8fef269d2c1d5dde2fff192b656c50f3 (patch)
tree4f6ea032789d811cd019bbb6c190c99a650084b2 /cache/bug_cache.go
parentd10c76469d40f13e27739fd363145e89bf74c3e0 (diff)
downloadgit-bug-14b240af8fef269d2c1d5dde2fff192b656c50f3.tar.gz
identity: more cleaning and fixes after a code review
Diffstat (limited to 'cache/bug_cache.go')
-rw-r--r--cache/bug_cache.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/cache/bug_cache.go b/cache/bug_cache.go
index 53c5c7d9..53c1db64 100644
--- a/cache/bug_cache.go
+++ b/cache/bug_cache.go
@@ -93,7 +93,7 @@ func (c *BugCache) AddComment(message string) error {
}
func (c *BugCache) AddCommentWithFiles(message string, files []git.Hash) error {
- author, err := identity.GetIdentity(c.repoCache.repo)
+ author, err := identity.GetUserIdentity(c.repoCache.repo)
if err != nil {
return err
}
@@ -115,7 +115,7 @@ func (c *BugCache) AddCommentRaw(author *identity.Identity, unixTime int64, mess
}
func (c *BugCache) ChangeLabels(added []string, removed []string) ([]bug.LabelChangeResult, error) {
- author, err := identity.GetIdentity(c.repoCache.repo)
+ author, err := identity.GetUserIdentity(c.repoCache.repo)
if err != nil {
return nil, err
}
@@ -142,7 +142,7 @@ func (c *BugCache) ChangeLabelsRaw(author *identity.Identity, unixTime int64, ad
}
func (c *BugCache) Open() error {
- author, err := identity.GetIdentity(c.repoCache.repo)
+ author, err := identity.GetUserIdentity(c.repoCache.repo)
if err != nil {
return err
}
@@ -164,7 +164,7 @@ func (c *BugCache) OpenRaw(author *identity.Identity, unixTime int64, metadata m
}
func (c *BugCache) Close() error {
- author, err := identity.GetIdentity(c.repoCache.repo)
+ author, err := identity.GetUserIdentity(c.repoCache.repo)
if err != nil {
return err
}
@@ -186,7 +186,7 @@ func (c *BugCache) CloseRaw(author *identity.Identity, unixTime int64, metadata
}
func (c *BugCache) SetTitle(title string) error {
- author, err := identity.GetIdentity(c.repoCache.repo)
+ author, err := identity.GetUserIdentity(c.repoCache.repo)
if err != nil {
return err
}
@@ -208,7 +208,7 @@ func (c *BugCache) SetTitleRaw(author *identity.Identity, unixTime int64, title
}
func (c *BugCache) EditComment(target git.Hash, message string) error {
- author, err := identity.GetIdentity(c.repoCache.repo)
+ author, err := identity.GetUserIdentity(c.repoCache.repo)
if err != nil {
return err
}