aboutsummaryrefslogtreecommitdiffstats
path: root/bug/operation.go
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-06-20 23:56:49 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-06-24 21:27:39 +0200
commite649a503963887c1fe5cdc3deaa0e2951261d76b (patch)
treeb42d3d0e6c0979f009f6f87579a776bd35a08d80 /bug/operation.go
parentcbac48277000b6d6c85418f099c1daf0e4d64956 (diff)
downloadgit-bug-e649a503963887c1fe5cdc3deaa0e2951261d76b.tar.gz
[bug] Operations: add GetAuthor method for operation interface and
BaseOp
Diffstat (limited to 'bug/operation.go')
-rw-r--r--bug/operation.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/bug/operation.go b/bug/operation.go
index 8e77eed8..2cb27d18 100644
--- a/bug/operation.go
+++ b/bug/operation.go
@@ -49,6 +49,8 @@ type Operation interface {
GetMetadata(key string) (string, bool)
// AllMetadata return all metadata for this operation
AllMetadata() map[string]string
+ // GetAuthor return author identity
+ GetAuthor() identity.Interface
}
func hashRaw(data []byte) git.Hash {
@@ -222,3 +224,7 @@ func (op *OpBase) AllMetadata() map[string]string {
return result
}
+
+func (op *OpBase) GetAuthor() identity.Interface {
+ return op.Author
+}