aboutsummaryrefslogtreecommitdiffstats
path: root/bug/operation.go
diff options
context:
space:
mode:
Diffstat (limited to 'bug/operation.go')
-rw-r--r--bug/operation.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/bug/operation.go b/bug/operation.go
index 8e77eed8..daef7b8c 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 the author identity
+ GetAuthor() identity.Interface
}
func hashRaw(data []byte) git.Hash {
@@ -222,3 +224,8 @@ func (op *OpBase) AllMetadata() map[string]string {
return result
}
+
+// GetAuthor return author identity
+func (op *OpBase) GetAuthor() identity.Interface {
+ return op.Author
+}