aboutsummaryrefslogtreecommitdiffstats
path: root/bug/op_add_comment.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-04-05 00:25:22 +0200
committerGitHub <noreply@github.com>2019-04-05 00:25:22 +0200
commitb9e413c5f95212a0076aae0f473226b32b5fc77a (patch)
treebe6cf69aad498216fa86058b71e2df9a31ebfbd6 /bug/op_add_comment.go
parent5b0a92dea43f467f31a65a6f02e937d285cb0a71 (diff)
parent57f0c2f25da3316efbff63f7f8dc73df20705320 (diff)
downloadgit-bug-b9e413c5f95212a0076aae0f473226b32b5fc77a.tar.gz
Merge pull request #117 from A-Hilaly/bug-participants
Implement participants and actors functionalities
Diffstat (limited to 'bug/op_add_comment.go')
-rw-r--r--bug/op_add_comment.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/bug/op_add_comment.go b/bug/op_add_comment.go
index c1e0838b..8cde20e8 100644
--- a/bug/op_add_comment.go
+++ b/bug/op_add_comment.go
@@ -29,6 +29,9 @@ func (op *AddCommentOperation) Hash() (git.Hash, error) {
}
func (op *AddCommentOperation) Apply(snapshot *Snapshot) {
+ snapshot.addActor(op.Author)
+ snapshot.addParticipant(op.Author)
+
hash, err := op.Hash()
if err != nil {
// Should never error unless a programming error happened